diff --git a/drupal/sites/default/boinc/modules/boincuser/boincuser.module b/drupal/sites/default/boinc/modules/boincuser/boincuser.module index 874b87bbf4..40fdf6e1a5 100644 --- a/drupal/sites/default/boinc/modules/boincuser/boincuser.module +++ b/drupal/sites/default/boinc/modules/boincuser/boincuser.module @@ -108,6 +108,14 @@ function boincuser_menu() { 'type' => MENU_LOCAL_TASK, 'weight' => 5 ); + $items['user/login/auth'] = array( + 'title' => bts('Authenticator login'), + 'description' => 'Log in using a user authenticator', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('boincuser_authloginform'), + 'access arguments' => array('access content'), + 'type' => MENU_CALLBACK, + ); $items['user_control'] = array( 'page callback' => 'boincuser_control', 'access arguments' => array('access user profiles'), @@ -933,7 +941,15 @@ function boincuser_form_alter(&$form, $form_state, $form_id) { '#size' => 60, '#maxlength' => EMAIL_MAX_LENGTH, '#required' => TRUE, - '#description' => bts('Enter your email address to receive instructions for resetting your password.') + '#description' => bts( + 'Enter your email address to receive instructions for resetting your password (or use the !authenticator_login).', + array( + '!authenticator_login' => l( + bts('authenticator-based login'), + 'user/login/auth' + ) + ) + ), ), )); diff --git a/drupal/sites/default/boinc/modules/boincuser/includes/boincuser.forms.inc b/drupal/sites/default/boinc/modules/boincuser/includes/boincuser.forms.inc index 024c290f3f..8b897f1464 100644 --- a/drupal/sites/default/boinc/modules/boincuser/includes/boincuser.forms.inc +++ b/drupal/sites/default/boinc/modules/boincuser/includes/boincuser.forms.inc @@ -402,15 +402,15 @@ function boincuser_request_pass_validate($form, &$form_state) { function boincuser_authloginform() { $form['heading'] = array( '#type' => 'markup', - '#value' => '
' . bts("If you have run BOINC under the account, you can still access it. Here's how:") . '
' . '<account>' . "\n" . @@ -421,7 +421,7 @@ function boincuser_authloginform() { '</account>' . '' . '