Problem/Motivation

Using the password reset form when Guardian is enabled produces a fatal error:
TypeError: Argument 1 passed to Drupal\guardian\GuardianManager::isGuarded() must implement interface Drupal\Core\\Session\AccountInterface, array given, called in /.../modules/guardian/guardian.module on line 146 in /.../modules/guardian/src/GuardianManager.php

Proposed resolution

Fix the fatal error.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

The password reset form is functional again.

API changes

None.

Data model changes

None.

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
StatusFileSize
new865 bytes

Attached patch fixes the fatal error.

  • Tessa Bakker committed c81b900 on 8.x-1.x authored by idebr
    Issue #2930135 by idebr: Password reset form generates fatal error:...
tessa bakker’s picture

Status: Needs review » Fixed

Thanks for the fix!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.