Skip to content

Commit

Permalink
fix: Correctly set user password
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic committed Oct 11, 2019
1 parent 5f41ac5 commit 3583ea2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion knora/create_ontology.py
Expand Up @@ -108,6 +108,7 @@ def program(args):

if args.verbose is not None:
print("Adding users...")

# now we add the users if existing
users = ontology["project"].get('users')
if users is not None:
Expand All @@ -117,7 +118,7 @@ def program(args):
email=user["email"],
given_name=user["givenName"],
family_name=user["familyName"],
password="password",
password=["password"],
lang=user["lang"] if user.get("lang") is not None else "en")
except KnoraError as err:
print("Creating user failed: " + err.message)
Expand Down

0 comments on commit 3583ea2

Please sign in to comment.