sclogin doesn't work if site is using alternate port

sclogin doesn't work if site is using alternate port

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!

1adam12
useravatar
Offline
3 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: sclogin doesn't work if site is using alternate port

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.

1adam12
useravatar
Offline
3 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: sclogin doesn't work if site is using alternate port

Yup, looks like we missed that. If you edit the /modules/mod_sclogin/helper.php file, around line 120, you'll see:

Code:

        if (!$url)

        {
            $uri = JURI::getInstance();
            $url = $uri->toString(array('scheme', 'host', 'path', 'query'));
        }

Edit that toString line to look like:

Code:

            $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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: sclogin doesn't work if site is using alternate port

worked like a charm, thanks!!!

1adam12
useravatar
Offline
3 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: sclogin doesn't work if site is using alternate port

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:
http://extensions.joomla.org/extensions … tion/24054

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11404
Total Polls:
0
Total Posts:
48070
Posts today:
2
User Info
 
Total Users:
47234
Newest User:
jrucker
Members Online:
1
Guests Online:
963

Online: 
Vinnie
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program