Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
8bd0f389
Commit
8bd0f389
authored
Sep 14, 2020
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
showing insertion result for add_user script
parent
8d73f9db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
add_users.py
src/rest-gateway/app/add_users.py
+4
-1
No files found.
src/rest-gateway/app/add_users.py
View file @
8bd0f389
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment