Ghost/ghost/admin/app/utils/random-password.js

9 lines
199 B
JavaScript
Raw Normal View History

import generatePassword from 'password-generator';
export default function () {
let word = generatePassword(6);
let randomN = Math.floor(Math.random() * 1000);
return word + randomN;
}