Reset user password of Discourse

Discourse is an excellent platform- super fast, super organized and super fresh looking. It has quite standarized and additional security options in the application UI. However, found a freat issue of updating any user of this platform as Admin (I was havign difficulties of self user password reset options, as the mail gateway was somewhat not working). 

So here goes the trick-

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
Share

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.