更改:登录成功之后清除失败次数

This commit is contained in:
yystopf 2023-04-04 14:00:09 +08:00
parent 05b3317152
commit 844d121c7f
1 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,8 @@ class AccountsController < ApplicationController
successful_authentication(@user)
sync_pwd_to_gitea!(@user, {password: params[:password].to_s}) # TODO用户密码未同步
LimitForbidControl::UserLogin.new(user).clear
# session[:user_id] = @user.id
end