Created
December 18, 2019 04:58
-
-
Save sebastianmoran-mainwp/33e864239631594fe8fed24bdf8bb46f to your computer and use it in GitHub Desktop.
Reset user in Discourse from Command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh into your server | |
cd /var/discourse | |
./launcher enter app | |
rails c | |
u = User.find_by_email('email@test.com') | |
u.password='zKRR6vTZKvJAB84V9jdgeydS' | |
u.save! | |
ctrl+d to exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://meta.discourse.org/t/reset-user-password-by-admin/56987/6