ff
This commit is contained in:
parent
59c2045ac6
commit
d83309d4cd
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue