Can check the validity of a password reset token

This commit is contained in:
2023-05-31 11:36:14 +02:00
parent 7f8e41b618
commit 0590197315
4 changed files with 64 additions and 1 deletions

View File

@ -27,6 +27,10 @@ async fn main() -> std::io::Result<()> {
"/auth/create_account",
web::post().to(auth_controller::create_account),
)
.route(
"/auth/check_reset_password_token",
web::post().to(auth_controller::check_reset_password_token),
)
})
.bind(AppConfig::get().listen_address.as_str())?
.run()