调整部分前端布局和后端增删改逻辑
This commit is contained in:
@@ -107,6 +107,8 @@ class LoginService:
|
||||
logger.warning('用户不存在')
|
||||
raise LoginException(data='', message='用户不存在')
|
||||
if not PwdUtil.verify_password(login_user.password, user[0].password):
|
||||
logger.warning(f"打印User:{user[0].password}")
|
||||
logger.warning(f"打印User:{PwdUtil.verify_password(login_user.password, user[0].password)}")
|
||||
cache_password_error_count = await request.app.state.redis.get(
|
||||
f'{RedisInitKeyConfig.PASSWORD_ERROR_COUNT.key}:{login_user.user_name}'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user