Logging in through module doesn't work but through forum works

Started by tomebi, December 20, 2004, 09:24:06 PM

Previous topic - Next topic

tomebi

I have installed the com_sf, com_registration and mod_smf_login, published it and on my mambo homepage I got the login box module

Looking at the code, the form's action attribute is:
hxxp:localhost/mambo/?option=com_smf&Itemid=55&?action=mambo_login [nonactive]

SO when I try to login, nothing happens, the login module box still says "Welcome, guest. Please login or register"

Now the weird thing is, after logging in and still seeing the "welcome guest" message, if I go to the forum component, which is located at this URL:
hxxp:127.0.0.1/mambo/index.php?option=com_smf&Itemid=55 [nonactive]

and then, if I click on the login button (which has this url: hxxp:localhost/mambo/index.php?option=com_smf&Itemid=55&?action=login [nonactive] )

..I just click it and automatically I'm logged in, then if I go back to my mambo index page, now the login module box shows the correct information, that I'm logged in...

by the way, I've my forums settings so that "local storage of cookies" and "use subdomain independent cookies" are unchecked, and "allow guests to browse the forum" is checked

Not sure what's happening, please help

Orstio


tomebi

Thanks,

yes, the MOS_SMF.php file is  located at:
hxxp:localhost/mambo/smf/Sources [nonactive] directory

I've installed the forum script at: hxxp:localhost/mambo/smf [nonactive]

So seems that the login form in the module box doesn't work in the beggining but if I point my browser to hxxp:localhost/mambo/index.php?option=com_smf&Itemid=55&?action=login [nonactive], just pointing to it (no typing login information again), then going back to the front page, the box now says that I'm logged...

installed the bridge twice from scratch, running on my win2k box with PHP; also tried deleting all cookies...

tomebi

Also, the registration module at this url:
hxxp:localhost/mambo/index.php?option=com_smf_registration&task=register [nonactive]

works perfectly, upon registering, I see both mos_users table and smf_members table are updated with a new row for each, so the registration module is working fine.

Orstio

QuoteSo seems that the login form in the module box doesn't work in the beggining but if I point my browser to http://localhost/mambo/index.php?option=com_smf&Itemid=55&?action=login, just pointing to it (no typing login information again), then going back to the front page, the box now says that I'm logged...

Chances are that you have a corrupt session cookie.  Clearing cookies from your browser does not necessarily work when this happens.

You can delete your cookies by closing all browser windows, and going to your cookies folder and deleting the cookie in question.  It is very important that no browser window is open when you do this.

tomebi

Thanks man,

I deleted the cookies by going to C:\Documents and Settings\Tom and also C:\Documents and Settings\Default User

didn't work;

maybe if I could understand what's the difference between

hxxp:localhost/mambo/?option=com_smf&Itemid=55&?action=mambo_login [nonactive]
hxxp:localhost/mambo/?option=com_smf&Itemid=55&?action=login [nonactive]

Because the form action in the module box on the homepage goes to ?action=mambo_login and doesn't work quite right - that is - I have to then visit the link with ?action=login for it to work

so which files is called when the url action parameter is set to mambo_login and which file is called when the action is set to "login" only

maybe I can fix my error if I knew what these actions are doing

thanks,
-tom



Orstio


tomebi

thanks Orstio, now working after I reinstalled everything including Mambo; couldn't find what caused that though...

Orstio

It was looking like you might have changed a "action='login'" to action='mambo_login'" somewhere in your SMF theme. 

As I stated, mambo_login replaces login2, not login.

loveacrossborders


Advertisement: