A
A
Artem Kirsov2022-04-06 22:42:02
Laravel
Artem Kirsov, 2022-04-06 22:42:02

How to specify an additional condition for authentication?

Good day.
New to Laravel.
How can it be implemented so that when logging in, not only the user's email and password are checked, but also the custom status field. And based on these 3 parameters, make a decision to allow entry.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TheAndrey7, 2022-04-06
@Artur3194

This is described directly in the documentation:
https://laravel.com/docs/9.x/authentication#specif...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question