Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
ae185ce5
Commit
ae185ce5
authored
Dec 03, 2015
by
Daniel W Bond
Browse files
use set_password method for proper password hashing
parent
2ddff238
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/cas_callbacks.py
View file @
ae185ce5
...
...
@@ -104,7 +104,7 @@ def create_user(tree):
user
.
email
=
email_str
# Password is a required User object field, though doesn't matter for our
# purposes because all user auth is handled through CAS, not Django's login.
user
.
password
=
'cas_used_instead'
user
.
set_
password
(
'cas_used_instead'
)
user
.
save
()
print
(
"Added user's email, %s."
%
email_str
)
...
...
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