Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

SSI.php Login

Aloittaja Solidsnakey, helmikuu 14, 2014, 07:08:21 AP

« edellinen - seuraava »

Solidsnakey

Hey all, I am hoping someone can help me. I am sure that the answer will be simple but I cant seam to figure it out.

Is a way of passing the errors received (i.e. "That username does not exist.") back to the page I have used "SSI_Login();"

Thanks in advanced.
Steve

Solidsnakey

Anyone have any idea? If not what php files to look for.

Thanks

All Colours Sam

Welcome to SMF, the annoying captcha goes away at 10 posts.

ssi_login is mainly just a login form, the data is send to action=login2   Function Login2 in Sources/LoginOut.php  does handle all possible errors and will redirect the user to an internal error page if there is any.

What exactly do you want to do?
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Solidsnakey

Thanks for the reply!

I have build a custom login from the main page of my site which calls on SSI_Login(); I would then like to display  any errors received, for example "That username does not exist" or "Password Incorrect" to then be passed back to my index.php and display them on my index page instead of redirecting the user to the user login for and displaying the error there.

Thanks
Steve

IchBin™

Not something you can do with SSI without having to write the custom code yourself. Sounds like you may want to use the API instead.
http://www.simplemachines.org/community/index.php?topic=458832.0
IchBin™        TinyPortal

Advertisement: