Welcome Guest, Not a member yet? Register   Sign In
How to make callback functions secure
#1

[eluser]bret[/eluser]
When entering in the url directly to a callback function, I get an error, obviously because it is not meant to be directly accessed.

My code is set up like so:

Controller Register

function process_register
{
// form validation invokes: callback_verify_email
}

function verify_email() <---How do I make this inaccessible to the public and only accessible for my function process_register?


Thanks in advance
#2

[eluser]CroNiX[/eluser]
functions that start with an underscore are private functions and not accessible via url.

function _verify_email()

Then your callback would have 2 underscores, like callback__verify_email.

You can also extend the form_validation with MY_Form_Validation and define new rules there. Then, they also wouldn't be publicly accessible (and you wouldn't have to define them in your controller).
#3

[eluser]bret[/eluser]
Thank you for the reply. I should have received a "Go look in the help files" type response. lol




Theme © iAndrew 2016 - Forum software by © MyBB