Improve 2FA security and user experience

This commit is contained in:
2024-06-19 22:44:01 +07:00
parent c1059072a6
commit 0e16d59df9
8 changed files with 166 additions and 82 deletions

View File

@ -50,7 +50,7 @@ func SetupRoutes() *http.ServeMux {
}
})
authRouter.HandleFunc("/totp", func(w http.ResponseWriter, r *http.Request) {
authRouter.HandleFunc("/totp/{id}", func(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case http.MethodGet:
middleware.Guest(totpHandler.GET, w, r)