server: enforce email and uuid unicity

This commit is contained in:
Valentin Tolmer
2023-04-13 10:37:54 +02:00
committed by nitnelave
parent d1f1eb8e80
commit 4e85a4718f
3 changed files with 131 additions and 22 deletions

View File

@@ -86,7 +86,7 @@ pub mod tests {
handler
.create_user(CreateUserRequest {
user_id: UserId::new(name),
email: "bob@bob.bob".to_string(),
email: format!("{}@bob.bob", name),
display_name: Some("display ".to_string() + name),
first_name: Some("first ".to_string() + name),
last_name: Some("last ".to_string() + name),