SA: Login Page UserActive validation
Hi - I am using the SA login page created by the wizard.
Everything seems to work fine, except that my 'Sorry your account is not active' validation seems to always want to show the error message.
Here is my helper rule:
case "UserActive":
$comparisons[0] = array(FALSE, "".((isset($_SESSION['SecurityAssist_UserActive']))?$_SESSION['SecurityAssist_UserActive']:"") ."", 2, "1");
break;
And here is my show region on the page:
<?php if(!WA_Auth_RulePasses("UserActive")){ // Begin Show Region ?>
<p style="color:#F60;">Sorry - your account is not active. Please email us for more information.</p>
<?php } // End Show Region ?>
The login works as expected - if the user active state is 0 the login does not proceed. If it is 1 it passes. The problem I am having is that the error message seems to show on first load of the page whether or not the user enters their details to log in.
Any help would be appreciated.
Thanks