mirror of
https://github.com/moparisthebest/discourse-migratepassword
synced 2024-11-24 09:52:19 -05:00
Update README.md
This commit is contained in:
parent
d5e77b5807
commit
20b8c7b831
@ -16,10 +16,11 @@ Usage
|
|||||||
=====
|
=====
|
||||||
|
|
||||||
* Store your alternative password hashes in a custom field named `import_pass`
|
* Store your alternative password hashes in a custom field named `import_pass`
|
||||||
|
```
|
||||||
user = User.find_by(username: 'user')
|
user = User.find_by(username: 'user')
|
||||||
user.custom_fields['import_pass'] = '5f4dcc3b5aa765d61d8327deb882cf99'
|
user.custom_fields['import_pass'] = '5f4dcc3b5aa765d61d8327deb882cf99'
|
||||||
user.save
|
user.save
|
||||||
|
```
|
||||||
|
|
||||||
License
|
License
|
||||||
=======
|
=======
|
||||||
|
Loading…
Reference in New Issue
Block a user