exclamation-circle redirect on failed login

More
10 months 1 week ago #11214 by deeplogica
redirect on failed login was created by deeplogica
HI.

When a user tried to login and enters incorrect details, the login fails, and redirects to the wrong page. How can I force the login to remain on the same page if the login is incorrect?

thanks

Please Log in or Create an account to join the conversation.

More
10 months 6 days ago #11215 by carsten888
Replied by carsten888 on topic redirect on failed login
When Joomla 4 is released I will make that the default behaviour. But for now, you can create a dynamic redirect with this code:
if($user_id){
$redirect_url='index.php?thing=login-user';
}
(where you change the url to the desired url)

Please Log in or Create an account to join the conversation.

More
10 months 6 days ago #11216 by deeplogica
Replied by deeplogica on topic redirect on failed login
Hi
Im afraid thats not working at all.

When I try and login with a wrong password/username it just ignores that and redirects me to a diferent login page (I have a login for affiliates an a login for clients)

Please Log in or Create an account to join the conversation.

More
10 months 5 days ago #11217 by carsten888
Replied by carsten888 on topic redirect on failed login
Do you mean when you login from a login module and get this message:

Warning
Username and password do not match or you do not have an account yet.

Redirect on Login can not override that, thats core Joomla stuff.

Please Log in or Create an account to join the conversation.

More
10 months 5 days ago #11218 by deeplogica
Replied by deeplogica on topic redirect on failed login
Hi. No, the message is fine. Thats not the issue.

The issue is that I have 2 potential login areas : One is for clients who subscribe to our services and the other is for affilaites.

Each has their own login form. But when a client tries to login to their CLIENT dashboard, and fails it takes them to the affiliate login form.

The redirection is failing.

Hope this is clear.

thanks

Please Log in or Create an account to join the conversation.

More
10 months 3 days ago #11219 by carsten888
Replied by carsten888 on topic redirect on failed login
Ah like that.

You can just once 1 login form and set the redirection per usergroup. That would solve this issue. Not sure why Joomla sends failed login to the default login form, even thou the user came form another login form....

Please Log in or Create an account to join the conversation.

Time to create page: 0.121 seconds
Powered by Kunena Forum
 
spicy-sacerdotal