mirror of
https://github.com/moparisthebest/discourse-migratepassword
synced 2024-11-21 08:25:08 -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`
|
||||
|
||||
user = User.find_by(username: 'user')
|
||||
user.custom_fields['import_pass'] = '5f4dcc3b5aa765d61d8327deb882cf99'
|
||||
user.save
|
||||
```
|
||||
user = User.find_by(username: 'user')
|
||||
user.custom_fields['import_pass'] = '5f4dcc3b5aa765d61d8327deb882cf99'
|
||||
user.save
|
||||
```
|
||||
|
||||
License
|
||||
=======
|
||||
|
Loading…
Reference in New Issue
Block a user