Hi there,
I'm looking to put a very simple password protection over a URL, and I'll hand out the password to certain individuals who won't be registered on my site beforehand. I know it's not the most secure option, but it's for a special offer which doesn't need to be.
I've trawled the forums, and have put in place a form with a Password and Submit button, coupled with a Custom Server Side Validation with the following code:
Then I have a Redirect User in place for the 'On Success' option, and an Event Loop for the 'On Failure' option. My password field is called 'pass'.
Unfortunately, it doesnt work. No matter what I put in the password field, it triggers an event loop. Which says to me the password field and code aren't talking to one another.
Any other suggestions as to what I could be doing wrong?
I'm looking to put a very simple password protection over a URL, and I'll hand out the password to certain individuals who won't be registered on my site beforehand. I know it's not the most secure option, but it's for a special offer which doesn't need to be.
I've trawled the forums, and have put in place a form with a Password and Submit button, coupled with a Custom Server Side Validation with the following code:
<?php
if ( !isset($form->data['pass']) || $form->data['pass'] != 'Georgie' ) {
$form->validation_errors['pass'] = "Wrong code!";.
return false;
}
?>
Then I have a Redirect User in place for the 'On Success' option, and an Event Loop for the 'On Failure' option. My password field is called 'pass'.
Unfortunately, it doesnt work. No matter what I put in the password field, it triggers an event loop. Which says to me the password field and code aren't talking to one another.
Any other suggestions as to what I could be doing wrong?