def _check_credentials(self, ctx, user_password): # type: (LoginCtx) -> bool return check_credentials(self.decrypt_func, self.verify_hash_func, user_password, ctx.input['password'])
def _check_credentials(self, ctx, user): return check_credentials(self.decrypt_func, self.verify_hash_func, user.password, ctx.input['password'])