mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
changed the password confirmation form field in the web installer so that it doesn't clobber some env vars, and allowed admin username and email to be set via env var
This commit is contained in:
@@ -370,8 +370,8 @@ function createAdmin(callback) {
|
||||
}
|
||||
|
||||
var results = {
|
||||
username: install.values['admin:username'] || 'admin',
|
||||
email: install.values['admin:email'] || '',
|
||||
username: install.values['admin:username'] || nconf.get('admin:username') || 'admin',
|
||||
email: install.values['admin:email'] || nconf.get('admin:email') || '',
|
||||
password: install.values['admin:password'] || nconf.get('admin:password') || password,
|
||||
'password:confirm': install.values['admin:password:confirm'] || nconf.get('admin:password') || password
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user