def update_password(cls, request, secure=True):
        result = const.RESPONSE_RESULT_FAILED
        res = None

        try:
            if not AuthorFacade._validate(request):
                raise IllegalRequestError(None)
            if secure:
                res = AuthorProtectionProxy.update_password(request)
            else:
                substance = request.get("substance")
                res = AuthorLogic.update_password(substance)
        except IllegalRequestError, ex:
            message = ex.message
            logging.warn(ex.message + str(request))
    def update_password(cls, request):
        credential = request.get("credential")
        AuthorProtectionProxy._authenticated(credential)

        substance = request.get("substance")
        AuthorLogic.update_password(substance)