Skip to content
Clone

refactor(auth): refresh login usecase

zhenyi committed
parent bd873ee commit 766d2ed Browse files

1 file changed

+2 −2

Modified lib/auth/features/login/usecase.rs 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);