Commit 8bd0f389 authored by Alexander Lercher's avatar Alexander Lercher

showing insertion result for add_user script

parent 8d73f9db
......@@ -25,6 +25,9 @@ if __name__ == "__main__":
for user in users:
if "username" in user and "password" in user and "role" in user:
UserService.add(user["username"], user["password"], role=user["role"])
username = user["username"]
password = user["password"]
UserService.add(username, password, role=user["role"])
print(f"User {username} : {password} created")
else:
print(f"Missing field in user object, required=(username, password, role), given=({user.keys()})")
\ No newline at end of file
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