From f3fd32c054d81c9dbdfae9cd9a58d6d547112223 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 14 Mar 2020 11:21:04 +0000 Subject: [PATCH] Fix URLs for flipping between otp/u2f --- server/templates/login_otp.html | 2 +- server/templates/login_u2f.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/templates/login_otp.html b/server/templates/login_otp.html index 26da7d6..ff88af3 100644 --- a/server/templates/login_otp.html +++ b/server/templates/login_otp.html @@ -29,7 +29,7 @@ {{if .AuthResponse.Has2FAMethod "u2f"}} <p> - <a href="{{.URLPrefix}}/login?2fa=u2f"> + <a href="{{.URLPrefix}}/login/u2f"> Use a hardware token instead. </a> </p> diff --git a/server/templates/login_u2f.html b/server/templates/login_u2f.html index 4c58acc..0509d7f 100644 --- a/server/templates/login_u2f.html +++ b/server/templates/login_u2f.html @@ -31,7 +31,7 @@ {{if .AuthResponse.Has2FAMethod "otp"}} <p> - <a href="{{.URLPrefix}}/login?2fa=otp"> + <a href="{{.URLPrefix}}/login/otp"> Use a numeric one-time token instead. </a> </p> -- GitLab