Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[Documentation] Migrating md5 to Vanilla passwords
Greetings -
We have an existing database of users (custom) that we'd like to migrate over to Vanilla to streamline the login process, etc. Existing passwords were generated using md5. I understand that there's some form of auto-conversion at login, but was wondering what we should set the "HashMethod" to, etc.
Thanks.
Tagged:
0
Best Answer
-
Todd Vanilla Staff
Here's what you do:
- Specify a hash method of
django
. - When you export the passwords add
md5$$
before the password. Note the two dollar signs. In MySQL you'd useconcat('md5$$', u.PasswordHash)
wherePasswordHash
is the name of the password column in your old database.
1 - Specify a hash method of
Answers
Here's what you do:
django
.md5$$
before the password. Note the two dollar signs. In MySQL you'd useconcat('md5$$', u.PasswordHash)
wherePasswordHash
is the name of the password column in your old database.Thanks Todd! I'll give that a try.
Worked. Most awesome. Thanks again.