Can check the validity of a password reset token
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user