Customizing SMF > SMF Coding Discussion
Using "LogInOut.php" Externally?
(1/1)
Shane74340Plus:
I have a webpage that contains a form that calls "LogInOut.php" as it's action. However, when I click my submit button, I redirect to a page that says "hacking attempt".
What is the cause of this and how can I use LogInOut.php externally?
Sorry, it's all hosted locally as it's a WIP, so I can't provide a link.
Arantor:
You're not supposed to call it directly, it's a series of subroutines called by SMF and in itself won't help you.
What, exactly, are you trying to achieve? (There's almost certainly a better way. Also, what version of SMF?)
Shane74340Plus:
--- Quote from: Arantor on June 10, 2012, 07:37:02 PM ---You're not supposed to call it directly, it's a series of subroutines called by SMF and in itself won't help you.
What, exactly, are you trying to achieve? (There's almost certainly a better way. Also, what version of SMF?)
--- End quote ---
I'm trying to replicate how the app Stencyl authenticates it's users. (basically, I have a custom login form, and once a user logs in, the desktop app will read the generated output.)
That, and I want to use my own Login form for the said process.
Arantor:
Take a look at the SMF API, in the integration board. It should cover that a lot more for you, but essentially you send the normal username and password, in return you get a cookie. That cookie should be presented every request, and the SMF API (and SSI, but that's not really what you're after) will authenticate it for you and load the necessary information.
Trying to splice LogInOut.php is a really, really bad idea.
Navigation
[0] Message Index
Go to full version