Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: ESTATUS (Read 1786 times) previous topic - next topic

ESTATUS

Hello, I have the status field in the user table, and I would like to know how I can make someone with the inactive status not be able to log in


Re: ESTATUS

Reply #2
How can I do it without the need to allow user to register?


Re: ESTATUS

Reply #4
And how could I do it, since it is not giving me any solution

Re: ESTATUS

Reply #5
@HENRYPIERCE‍ when you are ready to publish your project, apply the following code
Code: [Select]
//check if user account has been activated by administrator
$user_status = strtolower($user['account_status']);
if($user_status != "active"){
return $this->login_fail(get_lang('Your account is not active please contact system administrator for more information'));
}
to your IndexController.php in the login_user function, immediately after line 34, and that should do it.

Re: ESTATUS

Reply #6
Thank you.