test reset password

This commit is contained in:
eraden 2024-02-09 21:05:50 +01:00
parent 60c9c915e7
commit 2a5cd7f4a1
2 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,7 @@ use crate::session::AppClaims;
mod change_password;
mod email_check;
mod forgot_password;
mod magic_generate;
mod magic_sign_in;
mod reset_password;
@ -62,6 +63,7 @@ pub fn configure(http_client: reqwest::Client, config: &mut ServiceConfig) {
.service(magic_sign_in::magic_sign_in)
.service(token_refresh::refresh_token)
.service(change_password::change_password)
.service(forgot_password::forgot_password)
.configure(|c| {
social_auth::configure(http_client, c);
}),

View File

@ -45,6 +45,12 @@ pub enum EmailMsg {
token: MagicLinkToken,
current_site: String,
},
ForgotPassword {
first_name: String,
uidb: String,
token: String,
current_site: String,
},
}
#[derive(Debug, Serialize, Deserialize)]