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 9d4c1dd commit c71ee33Copy full SHA for c71ee33
routers/user/setting/security_twofa.go
@@ -76,6 +76,7 @@ func twofaGenerateSecretAndQr(ctx *context.Context) bool {
76
if otpKey == nil {
77
err = nil // clear the error, in case the URL was invalid
78
otpKey, err = totp.Generate(totp.GenerateOpts{
79
+ SecretSize: 40,
80
Issuer: setting.AppName + " (" + strings.TrimRight(setting.AppURL, "/") + ")",
81
AccountName: ctx.User.Name,
82
})
0 commit comments