diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-24 15:15:09 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-24 15:15:42 +0200 |
commit | 33664eff2c93136658b7f863c95e1bfda91141ee (patch) | |
tree | acda060d878b557e58db042a3bb30ff4212c17b1 /planetwars-server/src/routes/users.rs | |
parent | 4a582e8079178a7ac11f2a492e7988fcdaa210cd (diff) | |
download | planetwars.dev-33664eff2c93136658b7f863c95e1bfda91141ee.tar.xz planetwars.dev-33664eff2c93136658b7f863c95e1bfda91141ee.zip |
basic user profile pages
Diffstat (limited to 'planetwars-server/src/routes/users.rs')
-rw-r--r-- | planetwars-server/src/routes/users.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/routes/users.rs b/planetwars-server/src/routes/users.rs index 1989904..faad1d1 100644 --- a/planetwars-server/src/routes/users.rs +++ b/planetwars-server/src/routes/users.rs @@ -89,7 +89,7 @@ impl RegistrationParams { errors.push("password must be at least 8 characters".to_string()); } - if users::find_user(&self.username, &conn).is_ok() { + if users::find_user_by_name(&self.username, &conn).is_ok() { errors.push("username is already taken".to_string()); } |