Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SASC
sentinel-legacy
Commits
39dc8441
Commit
39dc8441
authored
Jan 25, 2016
by
bow
Browse files
Move API users password hashing to js script
parent
792e596c
Changes
2
Hide whitespace changes
Inline
Side-by-side
deployment/ansible-role-mongodb/templates/sentinelUsersSetup.js.j2
View file @
39dc8441
...
...
@@ -18,7 +18,7 @@ var users = [
{
id: "{{ user.id }}",
email: "{{ user.email }}",
hashedPassword: "{{ user.
hashed_
password }}",
hashedPassword: "{{ user.password
|hashpw
}}",
activeKey: "{{ user.active_key }}",
verified: {{ user.verified|to_nice_json }},
isAdmin: {{ user.is_admin|to_nice_json }},
...
...
deployment/ansible-role-sentinel/vars/main.yml
View file @
39dc8441
...
...
@@ -19,7 +19,7 @@ mongodb_sentinel_users:
# The default admin user
-
id
:
dev
email
:
dev@sentinel.dev
hashed_
password
:
"
{{
'dev'|hashpw
}}"
password
:
dev
active_key
:
dev
verified
:
yes
is_admin
:
yes
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