Commit 4d1021bd authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Create local auth provider for superadmin user

if one created after syncdb command
parent bc431e96
......@@ -1020,6 +1020,8 @@ def fix_superusers(sender, **kwargs):
admins = User.objects.filter(is_superuser=True)
for u in admins:
create_astakos_user(u)
if not u.has_auth_provider('local'):
u.add_auth_provider('local')
def user_post_save(sender, instance, created, **kwargs):
......
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