lundi 14 mars 2016

How can I Authenticate with condition in Laravel?

In Laravel documentation there is simple Authentication with condition

Auth::attempt(array('email' => $email, 'password' => $password, 'active' => 1))

In my app User can have one of few statuses. I want to authenticate AGAINST one of those: status != '99'.

Is there a way to achieve this within this request or some extra logic is required before Auth attempt is fired?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire