Problem/Motivation

The reset all tokens button in the Token Authentication settings page does not work correctly in Drupal 7. It takes the user to an invalid URI which was probably designed for Drupal 6.

Users would be taken to admin/settings/tokenauth/reset instead of admin/config/services/tokenauth/reset causing the Admin menu page to be displayed instead of resetting the tokens. Users could modify the URL to load the correct page and would then be presented with a confirmation page to reset all tokens.

Once at the proper confirmation page clicking the Reset Tokens button would reset the tokens but also return the user to the confirmation page as opposed to the Token Authentication settings page.

Proposed resolution

Update the URI's in the drupal_goto() function to ones compatible with Drupal 7 in tokenauth.pages.inc.
With regards to the confirmation page being returned, the tokenauth_reset_confirm_submit() function also needs to be updated to work with Drupal 7.

Attached is a patch that resolves both these issues.

CommentFileSizeAuthor
D7-reset-all-tokens.patch1.36 KBrbrownell

Comments

rbrownell’s picture

Issue summary: View changes
rbrownell’s picture

Issue tags: ++patch