Start to work on 2FA

This commit is contained in:
2022-04-18 19:23:43 +02:00
parent c0d1c41b4c
commit 3023771334
7 changed files with 82 additions and 3 deletions

View File

@ -118,6 +118,8 @@ async fn main() -> std::io::Result<()> {
.route("/settings", web::get().to(settings_controller::account_settings_details_route))
.route("/settings/change_password", web::get().to(settings_controller::change_password_route))
.route("/settings/change_password", web::post().to(settings_controller::change_password_route))
.route("/settings/two_factors", web::get().to(two_factors_controller::two_factors_route))
.route("settings/two_factors/add_totp", web::get().to(two_factors_controller::add_totp_factor_route))
// Admin routes
.route("/admin", web::get()