diff options
Diffstat (limited to 'pkg/app/handler/authentication/totp/totp.go')
-rw-r--r-- | pkg/app/handler/authentication/totp/totp.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/app/handler/authentication/totp/totp.go b/pkg/app/handler/authentication/totp/totp.go index 00e6b83..bc1e509 100644 --- a/pkg/app/handler/authentication/totp/totp.go +++ b/pkg/app/handler/authentication/totp/totp.go @@ -3,6 +3,7 @@ package totp import ( "glsamaker/pkg/app/handler/authentication/auth_session" "glsamaker/pkg/app/handler/authentication/utils" + "glsamaker/pkg/config" "glsamaker/pkg/models/users" "bytes" "encoding/base64" @@ -38,7 +39,7 @@ func GetToken(user *users.User) string { func Generate(email string) (string, string) { key, _ := totp.Generate(totp.GenerateOpts{ - Issuer: "glsamakertest.gentoo.org", + Issuer: config.Domain(), AccountName: email, }) |