aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/routes/users.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-24 15:15:09 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-24 15:15:42 +0200
commit33664eff2c93136658b7f863c95e1bfda91141ee (patch)
treeacda060d878b557e58db042a3bb30ff4212c17b1 /planetwars-server/src/routes/users.rs
parent4a582e8079178a7ac11f2a492e7988fcdaa210cd (diff)
downloadplanetwars.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.rs2
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());
}