Commit 2ee5c4cc authored by mig5's avatar mig5 Committed by mig5

Revert "#699250 by aaronbauman, mig5 - allow specification of uid 1 username"

This reverts commit 6b78394515da344e42f592f285b13323de053b9c.
parent b7db1f3a
......@@ -66,11 +66,7 @@ function install_create_admin_user($client_email = NULL) {
if (!$account) {
$account = new stdClass();
}
$edit['name'] = drush_get_option('admin_user', 'admin');
if ($error = user_validate_name($edit['name'])) {
// 'admin' is a sane default
$edit['name'] = 'admin';
}
$edit['name'] = 'admin';
$edit['pass'] = user_password();
$edit['mail'] = $client_email;
$edit['status'] = 1;
......
......@@ -63,11 +63,7 @@ function install_create_admin_user($client_email = NULL) {
}
// create the admin account
$account = user_load(1);
$edit['name'] = drush_get_option('admin_user', 'admin');
if ($error = user_validate_name($edit['name'])) {
// 'admin' is a sane default
$edit['name'] = 'admin';
}
$edit['name'] = 'admin';
$edit['pass'] = user_password();
$edit['mail'] = $client_email;
$edit['status'] = 1;
......
......@@ -15,11 +15,7 @@ function install_send_welcome_mail($url, $profile, $language, $client_email) {
if ($client_email) {
// create the admin account
$account = user_load(1);
$edit['name'] = drush_get_option('admin_user', 'admin');
if ($error = user_validate_name($edit['name'])) {
// 'admin' is a sane default
$edit['name'] = 'admin';
}
$edit['name'] = 'admin';
$edit['pass'] = user_password();
$edit['mail'] = $client_email;
$edit['status'] = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment