The Peculiar Fix

This commit is contained in:
Andrea Toska 2025-04-26 20:20:57 +02:00
commit 7e779fd3c6
No known key found for this signature in database
GPG key ID: 5B3C83807CCBE9A2
2 changed files with 2 additions and 2 deletions

View file

@ -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>{

View file

@ -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}");
}
}