Thanks Jason
I have changed my rule so that it restricts if <?php echo $_SESSION['SecurityAssist_UserActive']; ?> <> 1
On the login page:
<?php if(WA_Auth_RulePasses("Validated form")){ // Begin Show Region ?>
<p>Invalid username or password. <a href="/forgotpassword.php">Did you forget your password</a>?</p>
<?php } // End Show Region ?>
<?php if(WA_Auth_RulePasses("Log in success")){ // Begin Show Region ?>
<p>You have been logged in</p>
<?php } // End Show Region ?>
<?php if(WA_Auth_RulePasses("Failed log in")){ // Begin Show Region ?>
<p>Invalid username or password. <a href="/forgotpassword.php">Did you forget your password</a>?</p>
<?php } // End Show Region ?>
<?php if(WA_Auth_RulePasses("Emailed password")){ // Begin Show Region ?>
<p style="color:#F60;">Password information emailed, please check your inbox</p>
<?php } // End Show Region ?>
<?php if(WA_Auth_RulePasses("Successful update")){ // Begin Show Region ?>
<p>Registration completed successfully, please log in to access the site</p>
<?php } // End Show Region ?>
<?php if(WA_Auth_RulePasses("Logged into users")){ // Begin Show Region ?>
<?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 ?>
<?php } // End Show Region ?>
The rules works - if the users UserActive is not 1 the login does not proceed.
However the error message does not appear?
I've had this working before - I can't figure out what I have done wrong!
Dan