Invalid Login Message
Permalink Browser Info EnvironmentI would like visitors who supply incorrect credentials to receive the same "Invalid username or password" message that the core login has. Is there a way/workaround to achieve this?
Thanks.
Type: | Discussion |
---|---|
Status: | New |
They are not being redirected. It may be because we created a custom single page login theme, perhaps?
You can see it athttp://www.californiafairschoolfunding.org/login...
I can provide any access, if necessary.
Thank you.
The original function found in the core login controller is this
public function do_login() { $ip = Loader::helper('validation/ip'); $vs = Loader::helper('validation/strings'); $loginData['success']=0; try { if(!$_COOKIE[SESSION]) { throw new Exception(t('Your browser\'s cookie functionality is turned off. Please turn it on.')); } if (!$ip->check()) { throw new Exception($ip->getErrorMessage()); } if (OpenIDAuth::isEnabled() && $vs->notempty($this->post('uOpenID'))) { $oa = new OpenIDAuth(); $oa->setReturnURL($this->openIDReturnTo); $return = $oa->request($this->post('uOpenID'));
You can try and put that inside your controller.
Hope that helps.
JZ
If any of the login info were incorrect the user should be redirected to the core login form and should be given that same message. Did I answer your question correctly?
JZ