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
Anyone have any idea? If not what php files to look for.
Thanks
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?
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
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