diff options
Diffstat (limited to 'api/auth/signup.py')
-rw-r--r-- | api/auth/signup.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/api/auth/signup.py b/api/auth/signup.py index d82105a..fee879d 100644 --- a/api/auth/signup.py +++ b/api/auth/signup.py @@ -28,12 +28,11 @@ def index(): return {"error": "email_taken"}, 403 user_id = new_uuid() - password_salt = passwords.salt() - password_hash = passwords.password_hash(password, password_salt) + password_hash = passwords.password_hash(password) registered = int( time.time() * 1000 ) - cursor.execute("insert into users values (?, ?, ?, NULL, ?, ?, ?, \"[]\", FALSE, \"user\", \"{}\", NULL, \"online\") ", - (user_id, username, email, password_salt, password_hash, registered)) + cursor.execute("insert into users values (?, ?, ?, NULL, ?, ?, \"[]\", FALSE, \"user\", \"{}\", NULL, \"online\") ", + (user_id, username, email, password_hash, registered)) connection.commit() new_token = token.generate_token() |