re-stub email verification
This commit is contained in:
parent
2f42185b7f
commit
a019b36d5d
1 changed files with 1 additions and 3 deletions
|
|
@ -20,9 +20,7 @@ pub struct ValidateEmailInput{
|
||||||
}
|
}
|
||||||
#[post("/v1/api/support/validate/email", data="<data>")]
|
#[post("/v1/api/support/validate/email", data="<data>")]
|
||||||
pub async fn validate(data: Form<ValidateEmailInput>){
|
pub async fn validate(data: Form<ValidateEmailInput>){
|
||||||
if let Err(e) = send_verification_email(&data.email, 123456, "Andrea Test Username").await {
|
|
||||||
println!("Failed to send verification email: {e}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[put("/v1/api/support/email_confirmation/<pid>/<code>")]
|
#[put("/v1/api/support/email_confirmation/<pid>/<code>")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue