mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
hint
This commit is contained in:
@@ -364,7 +364,7 @@ function createAdmin(callback) {
|
|||||||
} else {
|
} else {
|
||||||
// If automated setup did not provide a user password, generate one, it will be shown to the user upon setup completion
|
// If automated setup did not provide a user password, generate one, it will be shown to the user upon setup completion
|
||||||
if (!install.values.hasOwnProperty('admin:password') && !nconf.get('admin:password')) {
|
if (!install.values.hasOwnProperty('admin:password') && !nconf.get('admin:password')) {
|
||||||
process.stdout.write('Password was not provided during automated setup, generating one...\n')
|
process.stdout.write('Password was not provided during automated setup, generating one...\n');
|
||||||
password = utils.generateUUID().slice(0, 8);
|
password = utils.generateUUID().slice(0, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -509,7 +509,7 @@ install.setup = function (callback) {
|
|||||||
} else {
|
} else {
|
||||||
var data = {};
|
var data = {};
|
||||||
if (results[6]) {
|
if (results[6]) {
|
||||||
data.username = results[6].username
|
data.username = results[6].username;
|
||||||
data.password = results[6].password;
|
data.password = results[6].password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user