refactor(auth): refresh login usecase
zhenyi committed
Modified lib/auth/features/login/usecase.rs lib/auth/features/login/usecase.rs +2 −2 View lib/auth/features/login/usecase.rs
@@ -104,10 +104,10 @@
104104 .ok_or_else(|| AuthError::BadRequest("this account is registered via a third-party provider; please sign in with that provider".into()))?;
105105
106106 let valid = password_hash::usecase::verify_password(
107 password_hash::types::PasswordInput {
107 password_hash::PasswordInput {
108108 password: &cmd.password,
109109 },
110 &password_hash::types::PasswordHashString(hash),
110 &password_hash::PasswordHashString(hash),
111111 )?;
112112 if !valid {
113113 return Err(AuthError::InvalidCredentials);