mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-04-02 20:31:03 +02: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
|
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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user