Change common_login to take in a user uuid, instead of a user DB object
This commit is contained in:
parent
7736de24fe
commit
aecec02b6c
7 changed files with 25 additions and 26 deletions
|
@ -401,7 +401,7 @@ class SuperUserCreateInitialSuperUser(ApiResource):
|
|||
superusers.register_superuser(username)
|
||||
|
||||
# Conduct login with that user.
|
||||
common_login(superuser)
|
||||
common_login(superuser.uuid)
|
||||
|
||||
return {
|
||||
'status': True
|
||||
|
|
Reference in a new issue