Autenticazione: risolto bug di esclusione utenti da DB
This commit is contained in:
parent
b3426ca311
commit
145bac8adf
@ -5,7 +5,6 @@ namespace App\Http\Controllers\Auth;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Illuminate\Foundation\Auth\AuthenticatesUsers;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class LoginController extends Controller
|
||||
{
|
||||
@ -38,12 +37,4 @@ class LoginController extends Controller
|
||||
{
|
||||
$this->middleware('guest')->except('logout');
|
||||
}
|
||||
|
||||
protected function credentials(Request $request)
|
||||
{
|
||||
return [
|
||||
'mail' => $request->email,
|
||||
'password'=>$request->password,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
10
composer.lock
generated
10
composer.lock
generated
@ -6834,16 +6834,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/sail",
|
||||
"version": "v1.21.2",
|
||||
"version": "v1.21.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/sail.git",
|
||||
"reference": "19d6fe167e2389b41fe1b4ee52293d1eaf8a43fc"
|
||||
"reference": "3042ff8cf403817c340d5a7762b2d32900239f46"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/sail/zipball/19d6fe167e2389b41fe1b4ee52293d1eaf8a43fc",
|
||||
"reference": "19d6fe167e2389b41fe1b4ee52293d1eaf8a43fc",
|
||||
"url": "https://api.github.com/repos/laravel/sail/zipball/3042ff8cf403817c340d5a7762b2d32900239f46",
|
||||
"reference": "3042ff8cf403817c340d5a7762b2d32900239f46",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -6895,7 +6895,7 @@
|
||||
"issues": "https://github.com/laravel/sail/issues",
|
||||
"source": "https://github.com/laravel/sail"
|
||||
},
|
||||
"time": "2023-03-06T14:23:15+00:00"
|
||||
"time": "2023-03-13T01:22:10+00:00"
|
||||
},
|
||||
{
|
||||
"name": "mockery/mockery",
|
||||
|
@ -38,7 +38,7 @@ return [
|
||||
'guards' => [
|
||||
'web' => [
|
||||
'driver' => 'session',
|
||||
'provider' => 'ldap', //'users',
|
||||
'provider' => 'users', //'users',
|
||||
],
|
||||
],
|
||||
|
||||
@ -76,10 +76,10 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
// 'users' => [
|
||||
// 'driver' => 'database',
|
||||
// 'table' => 'users',
|
||||
// ],
|
||||
'users' => [
|
||||
'driver' => 'database',
|
||||
'table' => 'users',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|
@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePasswordResetsTable extends Migration
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
@ -29,4 +29,4 @@ class CreatePasswordResetsTable extends Migration
|
||||
{
|
||||
Schema::dropIfExists('password_resets');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -10,7 +10,7 @@
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{ asset('/js/app.js') }}" defer></script>
|
||||
<script src="{{ asset('js/app.js') }}" defer></script>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
||||
@ -24,7 +24,7 @@
|
||||
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="{{ url('/') }}">
|
||||
{{ config('app.name', 'Gestionale Famigliare') }}
|
||||
{{ config('app.name', 'Laravel') }}
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
@ -76,8 +76,6 @@
|
||||
</nav>
|
||||
|
||||
<main class="py-4">
|
||||
@section('widget')
|
||||
@show
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\CategorieController;
|
||||
use App\Http\Controllers\CondominioController;
|
||||
|
@ -25,3 +25,7 @@ Route::get('/', function () {
|
||||
Auth::routes(); //development mode
|
||||
Route::get('/calendar', [TagController::class,'calendartest'])->name('calendar');
|
||||
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
||||
|
||||
Auth::routes();
|
||||
|
||||
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
||||
|
Loading…
Reference in New Issue
Block a user