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):
sub=userinfo['sub'],
idp=idp,
)
user.update_userinfo(userinfo)
user.save()
user.update_userinfo(userinfo)
return user
except cls.DoesNotExist:
......@@ -126,8 +126,8 @@ class User(AbstractUser):
email=email,
idp=idp,
)
user.update_userinfo(userinfo)
user.save()
user.update_userinfo(userinfo)
return user
......
Markdown is supported
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