fix otp and password validation

This commit is contained in:
Bakunya
2025-04-06 19:15:01 +07:00
parent 09a7f4371a
commit d2b098ed92
3 changed files with 28 additions and 7 deletions
@@ -88,7 +88,7 @@ impl<'a> AuthRepository<'a> {
pub async fn query_store_otp(&self, email: String, otp: u32) -> Result<String> {
let expires_at = Utc::now() + Duration::seconds(300);
let table = ResourceEnum::OtpCache.to_string();
let table: String = ResourceEnum::OtpCache.to_string();
let record: Option<AuthOtpSchema> = self
.state
.surrealdb_mem