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