PHP warning when unvalidate user try to reset password
-
Hey,
I’m working with WP-Members plugin for create a website with restricted content for logged users only. I use different form (register, login, reset password and forgot username). On each new registration, the user must be activated and confirmed for receive a password by email.
For security reasons, I tested every comportment and situations can be appear on my forms. I spotted an error on the reset password form. When a user unconfirmed or unvalidated type his username, php warnings appears :
Undefined array key "acct_not_approved" Undefined array key "acct_not_validated"I searching how to resolve this situation by hidden theses warnings and displaying a custom error message for significated to the user that is accounti isn’t approved / confirmed but I don’t find the solution.
However, when user type an unknow username, everything works and wp-members diplaying an error message for inform user that the username doesn’t exist.
When the username exist, the user receive an email normally and he can change his password.
The topic ‘PHP warning when unvalidate user try to reset password’ is closed to new replies.