diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-23 11:38:14 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-23 11:38:14 +0200 |
commit | 7abf9b90666c2400d095212fc66bd600e63134a5 (patch) | |
tree | 21defc9e2ead9d9086edea5c7db51de23b5a6fc8 /api/auth | |
parent | dc0af0d5fb536cdf0078457d284f09defcfaa0ca (diff) |
fix index out of range error + dprint fmt
Diffstat (limited to 'api/auth')
-rw-r--r-- | api/auth/signup.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/api/auth/signup.py b/api/auth/signup.py index 571adb4..180322a 100644 --- a/api/auth/signup.py +++ b/api/auth/signup.py @@ -70,7 +70,10 @@ def index(): # write new user to database and commit cursor.execute( "insert into users values (?, ?, ?, NULL, NULL, ?, ?, \"[]\", FALSE, \"user\", \"{}\", ?) ", - (user_id, username, email, password_hash, registered, bcrypt.gensalt()) + ( + user_id, username, email, password_hash, registered, + bcrypt.gensalt() + ) ) connection.commit() |