aboutsummaryrefslogtreecommitdiff
path: root/api/auth/signup.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-01-14 21:31:22 +0100
committerlonkaars <l.leblansch@gmail.com>2021-01-14 21:31:22 +0100
commitbf986adcf3f619860d18bda9e0c96e93ab97b260 (patch)
treed762866382928583d9b5b99f5694a82a54f3266f /api/auth/signup.py
parent999cf5cd082419bfce0e5147468e14d58465faae (diff)
login
Diffstat (limited to 'api/auth/signup.py')
-rw-r--r--api/auth/signup.py7
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()