Topic-icon Prevent registration fields

Active Subscriptions:

None
4 years 3 months ago #65935 by nigelj
When a user gets their username or password wrong they normally are presented with a warning message and the new user registration form

In this case I do not want the registration form to appear at all, or the warning message...I just want the page to refresh with the login form empty to start again (it's an intranet site where user accounts are created for them by the IT department...there is no situation where they ever have to create their own account).

How can I do this?
The topic has been locked.
Support Specialist
4 years 3 months ago #65937 by alzander
If you disable User Registration in the admin area, that should prevent the registration form from being shown and may redirect to the login page instead (unsure on this). The warning can be updated to a different language string that's more appropriate for your site.


I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 3 months ago - 4 years 3 months ago #65939 by nigelj
Replied by nigelj on topic Prevent registration fields
I have disabled user registration but the form still appears. There appears to be a disconnect between SCLogin and com_users, as the extension seems to be ignoring the user options settings?

Can you tell me which file the language string is in...I will edit that as suggested.
Last edit: 4 years 3 months ago by nigelj.
The topic has been locked.
Active Subscriptions:

None
4 years 3 months ago #65942 by nigelj
Replied by nigelj on topic Prevent registration fields
Can I get some advice on this please?
The topic has been locked.
Support Specialist
4 years 3 months ago #65943 by mel
Replied by mel on topic Prevent registration fields

I have disabled user registration but the form still appears. There appears to be a disconnect between SCLogin and com_users, as the extension seems to be ignoring the user options settings?

When you attempt the login with SCLogin, we're just passing the username and password to the com_users extension (the Joomla User component). Any subsequent behavior on what's shown is not under our control. Can you verify if you use the standard Joomla users module that you're seeing the same behavior?

Can you tell me which file the language string is in...I will edit that as suggested.

Without knowing the exact language string, I'd suggest looking in /language/xx-YY/xx-YY.com_users.ini

-Melissa
The topic has been locked.
Active Subscriptions:

None
4 years 3 months ago #65945 by nigelj
Replied by nigelj on topic Prevent registration fields
Thanks Mel,

I was going to try switching to the default Joomla login and see if the problem persists or not. Hopefully will be able to do that sometime tomorrow.

I thought the language file that generates that warning message was the Sourcecoast one. I'll have a search in others for the message to edit.
The topic has been locked.
Support Specialist
4 years 3 months ago #65947 by mel
Replied by mel on topic Prevent registration fields
Ok. When you get a chance to try the standard module, let me know if you see different behavior.
The topic has been locked.
Active Subscriptions:

None
4 years 3 months ago - 4 years 3 months ago #65955 by nigelj
Replied by nigelj on topic Prevent registration fields
Hi Mel,

I changed the login module back to the default Joomla one...this behaviour was the same, so I've changed back to SCLogin as I want to use that! I'd be very grateful if you could point me in the right direction as I'm not an expert or a developer, and have no idea where to start!

First though - it's another login form that appears lower down the page, NOT a registration form - that was my mistake!

To summarise the issue - if I try to login using a username and/or password that isn't a registered user, the page refreshes and I see the normal SCLogin form in the template position that I've set, but also at the bottom of the page (above the footer) I see another login form. I installed a clean 3.9.14 site for testing, and this behaviour is default...when I try to login with incorrect credentials the page refreshes with the additional login form in the main content area of the page.

The page refreshes to this URL - http://[domain]/index.php/component/users/?view=login&Itemid=[ID]. What I want it to do is refresh to the same page http://[domain]/WhateverPageTheUserWasOn.

I've no idea which PHP file/files handles the login and response, but it's obviously that one/s that I need to edit...but how I have no idea!

Thanks.
Last edit: 4 years 3 months ago by nigelj.
The topic has been locked.
Support Specialist
4 years 3 months ago #65972 by alzander
In general, what you describe is normal behavior:

I installed a clean 3.9.14 site for testing, and this behaviour is default...when I try to login with incorrect credentials the page refreshes with the additional login form in the main content area of the page.

You'll see the same behavior on this site.. if you fail to login, you're brought to the standard Joomla login page. Our SCLogin module is still in the top right Login | Register area. That's simply how Joomla and the SCLogin module work. When you try to login with the SCLogin, we pass the actual authentication off to the com_users component and that component will redirect you to it's login page if your credentials are incorrect so you can try again.

What I want it to do is refresh to the same page http://[domain]/WhateverPageTheUserWasOn.

This isn't something the SCLogin module supports. As noted above, we don't actually handle the authentication, so can't control where the user goes on a failed attempt.

I hope that helps explain,
Alex
The topic has been locked.