diff --git a/src/install.js b/src/install.js index 250aa4c799..e7bb669402 100644 --- a/src/install.js +++ b/src/install.js @@ -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 }; diff --git a/src/views/install/index.tpl b/src/views/install/index.tpl index 296c1d4d44..75d6c1e16a 100644 --- a/src/views/install/index.tpl +++ b/src/views/install/index.tpl @@ -78,8 +78,8 @@