Ghost/ghost/security/lib
Hannah Wolfe 3a7613a46e Added secret.create util to security package
- this utility existed twice in the ghost codebase:
   - f6fb823ce9/core/server/models/api-key.js (L24)
   - f6fb823ce9/core/server/data/migrations/versions/4.0/22-solve-orphaned-webhooks.js (L7)
- We also potentially need it for a second migration use case
- so moved it here, made it slightly more generic and also deprecated identifier.uid in favour of using this method as they do the same thing, but secret.create uses crypto properly
2022-05-06 15:15:40 +01:00
..
identifier.js Added secret.create util to security package 2022-05-06 15:15:40 +01:00
password.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
secret.js Added secret.create util to security package 2022-05-06 15:15:40 +01:00
string.js Updated to use slugify method from SDK for safe string 2019-05-07 15:33:07 +05:30
tokens.js Extended resetToken.compare return result with reason for comparison failure 2020-09-22 15:31:15 +12:00
url.js Moved tokens, url safe and safe string utility to lib/security 2017-12-14 13:38:00 +01:00