Topic-icon Remind/Reset buttons not working (Joomla 4.1.12)

Active Subscriptions:

None
1 year 11 months ago - 1 year 11 months ago #67961 by 888Jay
Hello,

One of our members just pointed out that the Remind and Reset links are not working. They just reload the page. I created a test page with the stock Joomla login and both Reset and Remind work as expected. Also, the 'Show Password' button is displayed regardless of the Hide/Show setting.

Joomla 4.1.12
PHP 8.1
Astroid template_one 2.5.14
SCLogin 9.0.198

 

Thanks,
Jay
Attachments:
Last edit: 1 year 11 months ago by 888Jay.
The topic has been locked.
Active Subscriptions:

None
1 year 11 months ago #67962 by 888Jay
Okay, so I made a main menu item called "Test Login" for the stock Joomla login module. The alias path is mydomain.com/test-login, and the Remind/Reset functions work great. On that page, the "Forget your password?" link redirects to mydomain.com/test-login?view=reset as expected.

On my home page, when I hover over the SCLogin reset password link, it shows a redirect to mydomain.com/component/users/reset?Itemid=101 which, when clicked, actually ends up at mydomain.com/?/reset

Next, I added the SCLogin module to the Test Login page sitting right next to the working Joomla login module. Guess what? The Remind/Reset functions worked exactly as expected.

Puzzling.
The topic has been locked.
Active Subscriptions:

None
1 year 11 months ago - 1 year 11 months ago #67964 by 888Jay
I've identified the cause but not the solution.

Some time ago I wrote a redirect in .htaccess to prevent users from being sent to the default Joomla login module if their session happens to timeout. Because this looks awful:

 

I don't need two login modules, I want them to time out back to the home page. So here is my redirect:
Redirect 301 "/component/users" "http://mydomain.com?"
RewriteCond %{QUERY_STRING} .*option=com_users.* [NC,OR]
RewriteCond %{PATH_INFO} .*component/users.* [NC]
RewriteRule (.*) http://mydomain.com? [R=301,L]

What didn't occur to me is that this also redirects the Remind/Reset functions on the home page. I tried using a more specific "/component/users/login" in the redirects but Remind/Reset still didn't work. On my Test Login page, the path is mydomain.com/test-login?view=reset so the redirect wasn't triggered.

Would it be possible for SCLogin to redirect to a specified page on a session timeout? The .htacess approach doesn't seem like such a good option.

Jay

 
Attachments:
Last edit: 1 year 11 months ago by 888Jay.
The topic has been locked.
Support Specialist
1 year 11 months ago - 1 year 11 months ago #67967 by alzander
The SCLogin module does not do anything when the session times out. That's hard-coded within Joomla whenever an access check fails. I don't know of a good way to override that behavior.

My best suggestion would be to work with Joomla instead of against it. By that, I mean, disable the extra login module from showing on that Login component page and style up the normal login area how you'd want it to show.

I know that may be harder done than said, but it may help you get out of this type of issue with other areas of the site and redirects as well.

Thanks,
Alex
Last edit: 1 year 11 months ago by alzander.
The topic has been locked.
Active Subscriptions:

None
1 year 11 months ago #67969 by 888Jay
Unfortunately, that "login" page doesn't actually exist. It redirects to the home page with PATH_INFO that displays the Joomla login component instead of the articles. And that's the only page that has the SCLogin component on it. Remind/Reset work in a similar fashion.

I guess I'll work on a better redirect, or just live with it.

Thanks for the feedback,
Jay
The topic has been locked.