Open pwebdev opened 8 months ago
If senha
is your password field, you can tell leaf to reference that in your auth config. If you use Leaf MVC or Leaf API, you can set this in config/auth.php
:
'PASSWORD_KEY' => 'senha'
If you use just Leaf, you can call auth()->config()
to update your config:
auth()->config('PASSWORD_KEY', 'passcode');
$login = auth()->login(['email' => $email, 'senha' => $pass]);