Curating usernames in sign-up and stash load tool.

This commit is contained in:
DebaucheryLibrarian
2023-06-08 03:57:50 +02:00
parent 1fc441670b
commit 914838e367
3 changed files with 21 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ async function load() {
const user = await knex('users')
.select('id')
.where('username', stash.username)
.where('username', stash.username.trim())
.first();
if (!user) {