mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
3a7613a46e
- 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
26 lines
428 B
JavaScript
26 lines
428 B
JavaScript
module.exports = {
|
|
get url() {
|
|
return require('./lib/url');
|
|
},
|
|
|
|
get tokens() {
|
|
return require('./lib/tokens');
|
|
},
|
|
|
|
get string() {
|
|
return require('./lib/string');
|
|
},
|
|
|
|
get identifier() {
|
|
return require('./lib/identifier');
|
|
},
|
|
|
|
get password() {
|
|
return require('./lib/password');
|
|
},
|
|
|
|
get secret() {
|
|
return require('./lib/secret');
|
|
}
|
|
};
|