Commit 18d9ea05 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Fix user creation bug

parent c08a156c
...@@ -100,8 +100,8 @@ class User(AbstractUser): ...@@ -100,8 +100,8 @@ class User(AbstractUser):
sub=userinfo['sub'], sub=userinfo['sub'],
idp=idp, idp=idp,
) )
user.update_userinfo(userinfo)
user.save() user.save()
user.update_userinfo(userinfo)
return user return user
except cls.DoesNotExist: except cls.DoesNotExist:
...@@ -126,8 +126,8 @@ class User(AbstractUser): ...@@ -126,8 +126,8 @@ class User(AbstractUser):
email=email, email=email,
idp=idp, idp=idp,
) )
user.update_userinfo(userinfo)
user.save() user.save()
user.update_userinfo(userinfo)
return user return user
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment