D
D
Danila5342021-01-13 23:50:09
Laravel
Danila534, 2021-01-13 23:50:09

How to stick a condition under which the user will be able to log in to the site?

Good evening, looking for hints...

There is authorization through Login and Password, it authorizes all users, but I need to make it so that the user can log in, provided that the active column in the users table is "1".
active = 0 (Do not authorize)
active = 1 (Authorize)

What is the best way to implement this? Will Guard help here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MinusD, 2021-01-14
@minusd

What version of laravel?
And another question, do you use built-in authorization or self-written?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question