diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-14 13:30:59 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-14 13:30:59 +0100 |
commit | a87831846d1f82c0da851e55c6599f6f5a24791f (patch) | |
tree | 3e34ede72623a5bfc7d29a2c30c7aa007740ae05 /api/auth/signup.py | |
parent | 5b8b222cfea6e00e452bcedbd88881380281e199 (diff) |
use lower() for register, search and login
Diffstat (limited to 'api/auth/signup.py')
-rw-r--r-- | api/auth/signup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/auth/signup.py b/api/auth/signup.py index 648f1b5..210ba94 100644 --- a/api/auth/signup.py +++ b/api/auth/signup.py @@ -38,7 +38,7 @@ def index(): not validate_password(password): return {"error": "form_data_invalid"}, 403 - if cursor.execute("select username from users where username = ?", [username]).fetchone(): + if cursor.execute("select username from users where lower(username) = lower(?)", [username]).fetchone(): return {"error": "username_taken"}, 403 if cursor.execute("select email from users where email = ?", [email]).fetchone(): |