summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_sign_totp.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/handler_sign_totp.go')
-rw-r--r--internal/handlers/handler_sign_totp.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/handlers/handler_sign_totp.go b/internal/handlers/handler_sign_totp.go
index fe91a657c..c06181af0 100644
--- a/internal/handlers/handler_sign_totp.go
+++ b/internal/handlers/handler_sign_totp.go
@@ -19,6 +19,7 @@ func SecondFactorTOTPPost(totpVerifier TOTPVerifier) middlewares.RequestHandler
}
userSession := ctx.GetSession()
+
secret, err := ctx.Providers.StorageProvider.LoadTOTPSecret(userSession.Username)
if err != nil {
ctx.Error(fmt.Errorf("Unable to load TOTP secret: %s", err), mfaValidationFailedMessage)