diff --git a/platform/login_reset.provision.inc b/platform/login_reset.provision.inc new file mode 100644 index 0000000..95c8291 --- /dev/null +++ b/platform/login_reset.provision.inc @@ -0,0 +1,22 @@ + $onetime)), 'message'); +} diff --git a/provision.drush.inc b/provision.drush.inc index 18e8522..fc89caf 100644 --- a/provision.drush.inc +++ b/provision.drush.inc @@ -29,6 +29,8 @@ * Uses hook_provision_pre_upgrade(), hook_provision_upgrade() and hook_provision_post_upgrade() hooks, * and allows clean roll back if any errors occur. Will include stringent checking of module versions, * and allow unit tests to be run. + * login_reset - Generate a one-time login reset URL. + * * Not implemented yet : * rename - Change the url of a site. This requires moving of files, and numerous other issues. */ @@ -121,7 +123,11 @@ function provision_drush_command() { 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT ); - + $items['provision login_reset'] = array( + 'description' => 'Generate a one-time login reset URL.', + 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT + ); + return $items; }