A fix for Ghost taking too long to authenticate due to some strange behavior in the bcrypt-nodejs library. This simply makes the passwords hash using Sha1 instead of bcrypt. Probably not the best/cleanest/most secure solution, but it works for most purposes.
INSTRUCTIONS:
- In the file core/server/models/user.js, replace the 'add' function with the contents of user-add.js.
- In the same file, replace the 'check' function with the contents of user-check.js.
- At the top, add the line 'sha1 = require('sha1'),' in the require section.
- In package.json, add the following line in the 'dependencies' section: "sha1": "1.1.0",
- You can remove references to the bcrypt library if you want. These are the only two places it is used.
- Remove all users from the databases in content/data/ by executing 'delete from users;' on the sqlite db (or delete the whole database if there's not anything important there yet).