Commit 8431e033 authored by Steven Jones's avatar Steven Jones

Minor code style fixes for previous commit.

parent 56511ff1
......@@ -19,11 +19,12 @@ function drush_provision_drupal_provision_login_reset() {
// Drupal 7/8 take a uid as an integer and not an array
if (drush_drupal_major_version() >= 7) {
$account = user_load(1);
} else {
}
else {
$account = user_load(array('uid' => 1));
}
if (empty($account)) {
return drush_set_error(drush_get_error(), 'Could not load the admin user with uid 1 on this site.');
return drush_set_error('PROVISION_UNABLE_TO_LOAD_UID_1', 'Could not load the admin user with uid 1 on this site.');
}
$onetime = user_pass_reset_url($account);
// pass the login link to the front end
......
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