The Peculiar Fix
This commit is contained in:
parent
ca6966dd1d
commit
7e779fd3c6
2 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ impl User{
|
|||
pub fn verify_cleartext_password(&self, cleartext_password: &str) -> Option<bool>{
|
||||
let nintendo_hash = self.generate_nintendo_hash(cleartext_password);
|
||||
|
||||
self.verify_hashed_password(cleartext_password)
|
||||
self.verify_hashed_password(&nintendo_hash)
|
||||
}
|
||||
|
||||
pub fn verify_hashed_password(&self, hashed_password: &str) -> Option<bool>{
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ struct ValidateEmailInput{
|
|||
}
|
||||
#[post("/v1/api/support/validate/email", data="<data>")]
|
||||
pub async fn validate(data: Form<ValidateEmailInput>){
|
||||
if let Err(e) = send_verification_email(&*data.email, 123456, "Andrea Test Username").await {
|
||||
if let Err(e) = send_verification_email(&data.email, 123456, "Andrea Test Username").await {
|
||||
println!("Failed to send verification email: {e}");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue