Skip to content

Commit

Permalink
Make 2FA codes valid for 15 minutes (#4149)
Browse files Browse the repository at this point in the history
  • Loading branch information
nono authored Oct 5, 2023
2 parents 9001722 + d43cf3a commit 1bccc17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/instance/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const (
)

var twoFactorTOTPOptions = totp.ValidateOpts{
Period: 30, // 30s
Skew: 10, // 30s +- 10*30s = [-5min; 5,5min]
Period: 60, // 60s
Skew: 14, // 60s +- 14*60s = [-13min; 15min]
Digits: otp.DigitsSix,
Algorithm: otp.AlgorithmSHA256,
}
Expand Down

0 comments on commit 1bccc17

Please sign in to comment.