Skip to content

Commit 17cd6b5

Browse files
committed
fix: user names are not unique
1 parent 23db80d commit 17cd6b5

File tree

1 file changed

+0
-7
lines changed
  • crates/infera-management-api/src/handlers

1 file changed

+0
-7
lines changed

crates/infera-management-api/src/handlers/auth.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,6 @@ pub async fn register(
274274
);
275275
}
276276

277-
// Check if name is available
278-
if !repos.user.is_name_available(&payload.name).await? {
279-
return Err(
280-
CoreError::Validation(format!("Name '{}' is already taken", payload.name)).into(),
281-
);
282-
}
283-
284277
// Hash password
285278
let password_hash = hash_password(&payload.password)?;
286279

0 commit comments

Comments
 (0)