You are here

function tokenauth_user_reset_confirm_submit in Token authentication 5

Same name and namespace in other branches
  1. 6.2 tokenauth.pages.inc \tokenauth_user_reset_confirm_submit()
  2. 6 tokenauth.pages.inc \tokenauth_user_reset_confirm_submit()
  3. 7 tokenauth.pages.inc \tokenauth_user_reset_confirm_submit()

Handler for reset tokens confirmation

File

./tokenauth.module, line 178

Code

function tokenauth_user_reset_confirm_submit($form_id, &$form) {
  global $user;
  if ($form['confirm']) {
    tokenauth_user_reset();
    drupal_set_message(t('The token have been reset.'));
    return "user/{$user->uid}/tokenauth";
  }
}