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 4c13a84 commit 5707ad3Copy full SHA for 5707ad3
routers/user/setting.go
@@ -583,7 +583,7 @@ func twofaGenerateSecretAndQr(ctx *context.Context) bool {
583
if otpKey == nil {
584
err = nil // clear the error, in case the URL was invalid
585
otpKey, err = totp.Generate(totp.GenerateOpts{
586
- Issuer: setting.AppName,
+ Issuer: setting.AppName + " (" + strings.TrimRight(setting.AppURL, "/") + ")",
587
AccountName: ctx.User.Name,
588
})
589
if err != nil {
0 commit comments