mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
bd2b206e4b
closes #5073 - takes password protection out of labs and moves it to general settings - adds random-words generator to randomly generate passwords
11 lines
211 B
JavaScript
11 lines
211 B
JavaScript
/* global generatePassword */
|
|
|
|
function randomPassword() {
|
|
var word = generatePassword(6),
|
|
randomN = Math.floor(Math.random() * 1000);
|
|
|
|
return word + randomN;
|
|
}
|
|
|
|
export default randomPassword;
|