diff --git a/src/model/user.rs b/src/model/user.rs index fb3b323..d04a9c5 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -434,6 +434,7 @@ ORDER BY last_access DESC } pub async fn create(db: &SqlitePool, name: &str) -> bool { + let name = name.trim(); sqlx::query!("INSERT INTO USER(name) VALUES (?)", name) .execute(db) .await