We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbc3462 commit 91c3bdbCopy full SHA for 91c3bdb
services/mfa/server.go
@@ -56,8 +56,8 @@ type session struct {
56
Challenge string `json:"challenge"`
57
Code string `json:"-"`
58
ExpiresAt time.Time `json:"expires_at"`
59
- Attempts int `json:"attempts"`
60
MaxAttempts int `json:"max_attempts"`
+ Attempts int `json:"attempts"`
61
}
62
63
// ChallengeRequest represents MFA challenge request
@@ -269,7 +269,7 @@ func (s *Server) statusHandler(w http.ResponseWriter, r *http.Request) {
269
270
271
// healthHandler returns service health
272
-func (s *Server) healthHandler(w http.ResponseWriter, r *http.Request) {
+func (s *Server) healthHandler(w http.ResponseWriter, _ *http.Request) {
273
s.mu.RLock()
274
sessionCount := len(s.sessions)
275
s.mu.RUnlock()
0 commit comments