mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-17 09:56:06 +00:00
fix: 登录失败时无提示
This commit is contained in:
@@ -51,8 +51,7 @@ class UserService:
|
||||
|
||||
ph = argon2.PasswordHasher()
|
||||
|
||||
if not ph.verify(user_obj.password, password):
|
||||
raise ValueError('密码错误')
|
||||
ph.verify(user_obj.password, password)
|
||||
|
||||
return await self.generate_jwt_token(user_email)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user