Commit 16b9f5a7 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Correctly set user password in user-add

password field contains the user password in hashed format. The proper way
to populate the field is by using the set_password method of the user object.
parent fbae8c6e
...@@ -87,8 +87,8 @@ class Command(BaseCommand): ...@@ -87,8 +87,8 @@ class Command(BaseCommand):
u = AstakosUser(email=email, u = AstakosUser(email=email,
first_name=first_name, first_name=first_name,
last_name=last_name, last_name=last_name,
is_superuser=options['is_superuser']) is_superuser=options['is_superuser'])
except BaseException, e: except BaseException, e:
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