refactor(auth): refresh register usecase
zhenyi committed
Modified lib/auth/features/register/usecase.rs lib/auth/features/register/usecase.rs +2 −2 View lib/auth/features/register/usecase.rs
@@ -120,7 +120,7 @@
120120 let username = derive_username(&cmd.email, cmd.username.as_deref());
121121 validate_username(&username)?;
122122 password_hash::validate_password(
123 password_hash::types::ValidatePasswordRequest {
123 password_hash::ValidatePasswordRequest {
124124 password: &cmd.password,
125125 },
126126 &svc.config.password_policy,
@@ -139,7 +139,7 @@
139139
140140 let now = OffsetDateTime::now_utc();
141141 let uid = Uuid::new_v4();
142 let hash = password_hash::usecase::hash_password(password_hash::types::PasswordInput {
142 let hash = password_hash::usecase::hash_password(password_hash::PasswordInput {
143143 password: &cmd.password,
144144 })?;
145145