Reset user password for your own Ghost blog

If you do not config mail up for your ghost blog,
it maybe a big problem once you lost your user password.
however, methods are always more than problems.
We can fix it up by reset it.

1. Find out your database name in your ghost config, it is maybe in config.production.json
  "database": {
    "client": "mysql",
    "connection": {
      "host": "localhost",
      "user": "ghost-452",
      "password": "dade1b0565f2585e07c7",
      "database": "ghost_production_acm"
2. Use mysql to reset the password.
mysql -u root -p
Enter the password for root account.
mysql> use ghost_production_acm;
mysql> select * from users;
ghost use bcrypthash for the password.
You can get bcrypt hash string from http://bcrypthashgenerator.apphb.com/


mysql>update users set password='
$2b$10$PaL8tKcU4i0CsjRrM6BhROVQMwwLFw2HSx/kWlAUgja23fNllc2Fy' where email='your@email';
#Additionally : if the account has been locked, 
#you can set status to active to unlock the account, like that:
#update users set status = “active”;
 
mysql>flush privileges;
mysql>quit
 
3.Restart your ghost blog and login again.
ghost stop
ghost start

config.production.json

Comments

  1. To change the Facebook password , first, click on the drop-down menu available in the top right corner of Facebook page and then select Settings. Click on Security and Login and then click on Edit that appears next to Change Password. Now, enter your current password and then the new one. Click on Save Changes to complete the process.

    ReplyDelete
  2. Looking great and it is very helpful content you can read my content here Recover Password on Pinterest.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to fix error : no module named sendgrid when try to use sendgrid python lib in PHP.

react-native run-android : sun.security.provider.cert path.SunCertPathBuilderException : unable to find valid certification path to req uested target

react-native run-android : do not build/update modified code(App.js)