This commit is contained in:
j 2024-11-07 16:28:18 +00:00
parent 59c2045ac6
commit d83309d4cd

View file

@ -179,6 +179,7 @@ def signup(request, data):
else: else:
user = User(username=data['username'], email=data['email']) user = User(username=data['username'], email=data['email'])
user.set_password(data['password']) user.set_password(data['password'])
user.save()
prepare_user(user) prepare_user(user)
if request.session.session_key: if request.session.session_key:
models.SessionData.objects.filter(session_key=request.session.session_key).update(user=user) models.SessionData.objects.filter(session_key=request.session.session_key).update(user=user)