Ghost/core/server
Aileen Nowak c8cbbc4eb6 Improved password validation rules (#9171)
refs #9150 

- Moves the password length fn from `models/user` to `data/validation` where the other validator functions live.
- Added password validation rules. Password rules added:
   - Disallow obviously bad passwords: '1234567890', 'qwertyuiop', 'asdfghjkl;' and 'asdfghjklm' for example
   - Disallow passwords that contain the words 'password' or 'ghost'
   - Disallow passwords that match the user's email address
   - Disallow passwords that match the blog domain or blog title
   - Disallow passwords that include 50% or more of the same characters: 'aaaaaaaaaa', '1111111111' and 'ababababab' for example.
- Password validation returns an `Object` now, that includes an `isValid` and `message` property to differentiate between the two error messages (password too short or password insecure).
- Use a catch predicate in `api/authentication` on `passwordReset`, so the correct `ValidationError` will be thrown during the password reset flow rather then an `UnauthorizedError`.
- When in setup flow, the blog title is not available yet from `settingsCache`. We therefore supply it from the received form data in the user model `setup` method to have it accessible for the validation.
2017-10-26 11:01:24 +01:00
..
adapters Debug: LocalStorage response time 2017-10-04 10:05:35 +01:00
admin API express app routing & middleware improvements (#8883) 2017-08-17 17:52:58 +07:00
api Improved password validation rules (#9171) 2017-10-26 11:01:24 +01:00
apps 🐛 Fixed internal links converting to absolute URLs (#9143) 2017-10-18 17:54:17 +01:00
auth Improved debug logs for auth utils (#9015) 2017-09-18 16:23:47 +01:00
blog Group channel-handling code together 2017-10-25 18:48:47 +01:00
config 🐛 Fixed redirects upload for various browsers/systems (#9042) 2017-09-22 21:57:43 +02:00
controllers Group channel-handling code together 2017-10-25 18:48:47 +01:00
data Improved password validation rules (#9171) 2017-10-26 11:01:24 +01:00
events post-scheduling 2016-06-14 10:52:13 +02:00
helpers support prev/next filtering by author (#9149) 2017-10-18 18:12:20 +01:00
mail Improved log output for welcome email error (#9016) 2017-09-19 14:24:20 +01:00
middleware 🐛 HTML page error: correct templateData (#9144) 2017-10-13 14:26:42 +01:00
models Improved password validation rules (#9171) 2017-10-26 11:01:24 +01:00
permissions Permissions: minor refactors (#9104) 2017-10-05 21:01:34 +02:00
public 🛠 🙈 Rename ghost-url.js to ghost-sdk.js (#8767) 2017-07-28 18:23:32 +04:00
services Move xmlrpc & slack to services (#9179) 2017-10-25 15:27:56 +01:00
settings Used ghost-ignition.debug, removed debug dep (#8881) 2017-08-15 18:29:27 +07:00
themes 🐛 Fixed showing "theme missing" error incorrectly (#9129) 2017-10-11 15:19:12 +02:00
translations Improved password validation rules (#9171) 2017-10-26 11:01:24 +01:00
utils 🐛 Fixed internal links converting to absolute URLs (#9143) 2017-10-18 17:54:17 +01:00
views 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
analytics-events.js Add segment analytics for blog data (#8912) 2017-08-22 12:23:23 +01:00
app.js API express app routing & middleware improvements (#8883) 2017-08-17 17:52:58 +07:00
errors.js 🐛 Added 409 UpdateCollisionError for the editor (#8899) 2017-08-15 12:06:40 +02:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Used ghost-ignition.debug, removed debug dep (#8881) 2017-08-15 18:29:27 +07:00
i18n.js Improved the usage of missing translation keys (#9081) 2017-10-03 09:47:48 +02:00
index.js Move xmlrpc & slack to services (#9179) 2017-10-25 15:27:56 +01:00
logging.js 🐛 forward missing logging config: rotation 2017-02-17 18:24:14 +01:00
overrides.js 🛠 update lodash,knex and bookshelf to latest versions 2016-09-26 10:20:55 +02:00
update-check.js 🐛 Fixed persistent upgrade notifications showing for the currently installed version (#9048) 2017-09-25 12:22:56 +01:00