Finalize 2FA implementation

This commit is contained in:
2024-06-20 08:49:49 +07:00
parent 0e16d59df9
commit c5185d5107
8 changed files with 87 additions and 77 deletions

View File

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