Module redirects admin to /user/1/edit page if "Force to have accepted consent" is selected

Created on 9 May 2018, about 6 years ago
Updated 10 January 2024, 6 months ago

Hey!

I'm trying to get hang of this module, but not really getting there.

No matter what I do, if I force acceptance, admin user is always redirected to edit page. If I leave that unchecked or check that redirect, nothing happens.

After some debugging, it seems that $_SESSION['pass_reset_1'] is present at all times, and the following lines to redirect no matter what:

    if(!empty($_SESSION['pass_reset_' . $user->uid])) {
      $is_reset = TRUE;
      if(!empty($_GET['pass-reset-token'])) {
        // Store token for the session.
        $_SESSION['reset_token'] = check_plain($_GET['pass-reset-token']);
      }
      if($path != 'user/' . $user->uid . '/edit') {
        drupal_goto('user/' . $user->uid . '/edit', array('query' => array('pass-reset-token' => $_SESSION['reset_token'])));
      }
    }

I have exempted "administrator" role from consent, but that has no effect. Exempt or not, I can access only user/edit and gdpr_consent paths.

Cheers,

Janne

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇮Finland jiisuominen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia taggartj

    I had Same thing in Drupal 10 version 10 Jan 2024 Where No other admin page would work or load

    redirected back to user/1/edit
    just reset password

    just putting here to help people

Production build 0.69.0 2024