How to Display “This user is currently being deactivated now” Message Instead of “Invalid User Id or Password” in PHPMaker 8.0.3

PHPMaker does a really good job while generating the login page which is included with the powerful ValidateUser function. Unfortunately, when you optimize the field “Activated” in order to signify whether a user Activated status is “Yes” (enabled=1) or “No” (disabled=0), and when the user status disabled so that the user cannot logged in and this is fine, the message that being displayed is still too common and there is no connection at all with the condition above. The message is: “Incorrect user ID or password”. I think this failure message is not so smart as it should be.

The following modifications will overcome the problems above. It will display the related message that corresponding to the condition where the user Activated status is currently disabled. So, that general message above would be replaced with something more accurate like this: “This user is currently being deactivated now”.

Does it sound better, huh? ;)

Please Login or register to read the rest of this content.

Trackbacks

  1. [...] note that you have to apply this customization before implementing this customization, since there is some constants were added into the ewcfg.php [...]

Speak Your Mind

s2Member®