fix(auth): 登录时间写回保留并发停用状态 (#685)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -263,7 +263,7 @@ func (s *Service) CompleteLinuxDOLogin(stateValue string, code string) (*LinuxDO
|
||||
now := time.Now()
|
||||
user.LastLoginAt = &now
|
||||
user.UpdatedAt = now
|
||||
if err := s.repo.Save(user); err != nil {
|
||||
if err := s.repo.UpdateUserLoginTime(user.ID, now); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
s.host.RecordActivity(user.ID, "login", 1)
|
||||
|
||||
Reference in New Issue
Block a user