Update application UI and functionality

This commit is contained in:
2026-07-26 16:20:36 +08:00
parent b9aff58f32
commit 97ea6fb7aa
48 changed files with 2790 additions and 628 deletions
@@ -112,10 +112,13 @@ func (s *Service) Login(ctx context.Context, username, password, captchaID, capt
return "", "", false, nil
}
user, ok, err := s.store.VerifyAdminPassword(ctx, username, password)
if err != nil || !ok {
s.recordLoginFailure(attemptKey)
if err != nil {
return "", "", false, err
}
if !ok {
s.recordLoginFailure(attemptKey)
return "", "", false, nil
}
sessionID := randomToken(32)
csrf := randomToken(32)
s.mu.Lock()