Invalid Login Message
Permalink Browser Info Environment
Hi,
I 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.
I 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 |
Hi,
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.
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.
Ah yes, it looks like you hard-coded the Register Pro block inside that single page. In that case you'll have to put the do_login function in the controller of your single page.
The original function found in the core login controller is this
You can try and put that inside your controller.
Hope that helps.
JZ
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'));
Viewing 15 lines of 77 lines. View entire code block.
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