Your user table must have activate colum INT 0 for non active 1 for activeput this code after the last closing tag in views/layout.php
<?php
//custom check active
if (IsLoggedIn()) {
$activestatus = CurrentUserInfo("activate");
if($activestatus==0){header("Location: logout");}
}
?>