Error TypeError: array_search(): Argument #2 ($haystack) must be of type array when modules "Login Disable" or "Disable Login" are also installed

Created on 29 November 2023, about 1 year ago

Problem/Motivation

I need to enforce the a SAML login to my website, and I am trying to install a module to disable to normal user login and a module to prevent the "Reset Your Password" page.

Steps to reproduce

Install either the "Login Disable" and "Disable Login" modules and configure the module to prevent the use of the normal site login form.
Install the No Request New Password module and configure it to prevent password reset.

After installing the "No Request New Password" module, the normal login form throws an error related to the "No Request New Password" module.

TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given in array_search() (line 19 of modules/contrib/noreqnewpass/noreqnewpass.module).

Also, the "Reset Your Password" page at /user/password operates normally and allows password reset.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

1.3

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024