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
| Comment | File | Size | Author |
|---|---|---|---|
| error-on-login-page.png | 399.41 KB | austin_brian |
Issue fork noreqnewpass-3404800
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
chetan 11 commentedHi,
I have fixed the above error on "No Request New Password" module.
Please check the raised MR once.
Thanks.
Comment #7
astonvictor commentedComment #10
astonvictor commented