Merge pull request 'trim name of new user name' (#479) from trim-new-user-names into main
Reviewed-on: #479
This commit is contained in:
commit
31fda6bee9
@ -450,6 +450,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
|
||||
|
Loading…
Reference in New Issue
Block a user