Topic-icon sclogin doesn't work if site is using alternate port

Active Subscriptions:

None
Hi,
this looks like a very nice login module and I'm hoping it will work fine for what I need. But, on my staging/testing site, which I have running on localhost:8888 on my laptop, when you try to process a login, sclogin ignores the alternate port of 8888 and crafts the login assuming the site is on port 80, which doesn't work in this case. Seems like this should be an easy fix. Thanks!
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34552 by 1adam12
one clarification: the login does get processed but the after-login redirect fails because sclogin isn't inserting the port number into the URL. if you manually edit the resulting URL you will see that you are logged in.
The topic has been locked.
Support Specialist
10 years 9 months ago #34564 by alzander
Yup, looks like we missed that. If you edit the /modules/mod_sclogin/helper.php file, around line 120, you'll see:
if (!$url)
        {
            $uri = JURI::getInstance();
            $url = $uri->toString(array('scheme', 'host', 'path', 'query'));
        }
Edit that toString line to look like:
$url = $uri->toString(array('scheme', 'host', 'port', 'path', 'query'));
That should work for you, but please let us know. We'll add it to our to-do list for the next release.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34579 by 1adam12
worked like a charm, thanks!!!
The topic has been locked.
Support Specialist
10 years 9 months ago #34584 by alzander
Awesome. Glad to hear that worked. I've entered that into our bug-tracker and the fix will be included in the next release. If you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for SCLogin, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/access-...authentication/24054

Thanks,
Alex
The topic has been locked.