mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-13 09:40:18 +01:00
fix: Login non funzionante
This commit is contained in:
parent
4ff43648f1
commit
a92c7ce8b5
@ -26,8 +26,8 @@ class FortifyServiceProvider extends ServiceProvider
|
||||
public function boot(): void
|
||||
{
|
||||
Fortify::authenticateUsing(static function (Request $request) {
|
||||
$user = User::where('email', $request->input('username')
|
||||
->orWhere('username', $request->input('username')))
|
||||
$user = User::where('email', $request->input('username'))
|
||||
->orWhere('username', $request->input('username'))
|
||||
->first();
|
||||
|
||||
if ($user && Hash::check($request->input('password'), $user->password)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user