Пример #1
0
 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'])
Пример #2
0
 def _check_credentials(self, ctx, user):
     return check_credentials(self.decrypt_func, self.verify_hash_func,
                              user.password, ctx.input['password'])