From 7e779fd3c6553bd12109427c44c9b51bc7657e96 Mon Sep 17 00:00:00 2001 From: Andrea Toska Date: Sat, 26 Apr 2025 20:20:57 +0200 Subject: [PATCH] The Peculiar Fix --- src/account/account.rs | 2 +- src/nnid/support.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/account/account.rs b/src/account/account.rs index 8e4fc6f..77c6447 100644 --- a/src/account/account.rs +++ b/src/account/account.rs @@ -96,7 +96,7 @@ impl User{ pub fn verify_cleartext_password(&self, cleartext_password: &str) -> Option{ 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{ diff --git a/src/nnid/support.rs b/src/nnid/support.rs index b3a1697..95dc1e0 100644 --- a/src/nnid/support.rs +++ b/src/nnid/support.rs @@ -20,7 +20,7 @@ struct ValidateEmailInput{ } #[post("/v1/api/support/validate/email", data="")] pub async fn validate(data: Form){ - 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}"); } }