Topic-icon SCLogin 9.1.82 - show/hide password button not working

4 weeks 1 day ago - 4 weeks 1 day ago #68990 by olivus
Hi Mel,

After migrating/updating to Joomla 4 & SCLogin 9.1.82, the show/hide password button (in the login/registration popup) is no longer working (see attached picture)

I am using the following versions/release :
JFBConnect : 9.1.76
SCLogin 9.1.82
Joomla : 4.4.6

Any help would be much appreciated,
Thanks

I sent you credentials details via the contact form
Attachments:
Last edit: 4 weeks 1 day ago by olivus.
Support Specialist
4 weeks 1 day ago #68994 by mel
For Joomla 4, SCLogin relies on Joomla's built-in password toggling of the input-password-toggle class (using the media/system/js/fields/passwordview.min.js javascript).

I disabled SCLogin and enabled the standard Joomla Login module instead - the toggle does not work on that as well. This is not an SCLogin problem, but something else on the site causing it. I'd suggest looking through any other plugins or extensions that aren't standard with Joomla to narrow it down.

In the meantime, you could try the following as a workaround in SCLogin. In helper.php around line 704 in the getShowPasswordButton method, there are two paths that SCLogin can take for what password button gets shown - one for J3 and one for J4. You could try always returning what's in the JVERSION < 4.0 block and commenting out the other portion. However, I'd still suggest you try to narrow down what's interrupting the normal Joomla behavior.

-Melissa
4 weeks 18 hours ago #68996 by olivus
Hi Mel,
1) I disabled SCLogin and enabled the standard Joomla Login module instead (pic1)...and I lost completely the Login popup (pic2) ?
2) I looked through other plugins extensions that aren't standard with Joomla without success so far
3) I try the workaround in SCLogin (around line 704) but the toogle does not work with that as well.
If you have other options, please let me know
Thanks
 
Attachments:
Support Specialist
3 weeks 5 days ago #69003 by mel
The login not loading - This was because you had the extension disabled. Even though you published the module, it won't show up until enabled in the system extension manager.

So after some more poking around, I am pretty sure it has to do with how you are loading the SCLogin module into that popup. I realized that you had the SCLogin module set to Always Visible, but it's a modal being shown. I'm not sure what extension or plugin you are using to do this but I think that's where the problem lies.

When I switched SCLogin to modal popup instead of always visible, the input-password-toggle worked. You can see it on the following page:
- I created a temporary menu item in the Bottom Menu called Login (it goes to quelpriximmo.com/login).
- I created an SCLogin instance just for this page and switched it to Modal Popup.
- It's still being launched by the previous way of however you are launching the module, but you can see that the toggle works in the SCLogin module now.
- You can remove the temp menu item and module when done.

My suggestion - however you're adding that button right now, replace it with just the SCLogin module in Modal Popup mode. It will also be a button - you may have to style the color to make it look like the current button but that is easier to do that than figuring out the problem with the extension that you're using to launch the modal right now.

Hope this helps get you on the right track.

-Melissa