Display form to enter OTP code

This commit is contained in:
2022-04-19 19:24:07 +02:00
parent c1677071fc
commit ce7118ff81
4 changed files with 75 additions and 2 deletions

View File

@ -112,6 +112,8 @@ async fn main() -> std::io::Result<()> {
.route("/reset_password", web::get().to(login_controller::reset_password_route))
.route("/reset_password", web::post().to(login_controller::reset_password_route))
.route("/2fa_auth", web::get().to(login_controller::choose_2fa_method))
.route("/2fa_otp", web::get().to(login_controller::login_with_otp))
.route("/2fa_otp", web::post().to(login_controller::login_with_otp))
// Logout page
.route("/logout", web::get().to(login_controller::logout_route))