mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
ed9fdbca7f
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;
|