Answer the question
In order to leave comments, you need to log in
How to validate authorization in Laravel?
There is a registration, there is a field in the active table for each user, before authorization, you need to check that the Active field = 1, if not, then do not authorize. How can this be done using Laravel?
Answer the question
In order to leave comments, you need to log in
$u = array(
'username' => Input::get('email'),
'password' => Input::get('password'),
'active'=>1 //вот ваш параметр по которому тоже будет выполняться проверка при авторизации
);
if (Auth::attempt($u)) {
.....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question