diff --git a/app/Http/Controllers/SashaAuthController.php b/app/Http/Controllers/SashaAuthController.php index c0120e3..e7e359e 100644 --- a/app/Http/Controllers/SashaAuthController.php +++ b/app/Http/Controllers/SashaAuthController.php @@ -97,10 +97,10 @@ public function handleCallback(Request $request) ]); Log::info("Se creo o actualizo un usuario"); - Activity::all(); - Auth::login($user); + Log::info(Auth::user()); + return redirect('/'); } } diff --git a/app/Models/User.php b/app/Models/User.php index 4cd6070..f535545 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -38,6 +38,9 @@ class User extends Authenticatable 'rol' ]; + public $incrementing = false; + protected $keyType = 'string'; + /** * The attributes that should be hidden for serialization. * diff --git a/resources/views/landig-page.blade.php b/resources/views/landig-page.blade.php index ce80b52..7edda40 100644 --- a/resources/views/landig-page.blade.php +++ b/resources/views/landig-page.blade.php @@ -1,7 +1,7 @@ @extends('templates.general') @section('content') - +@dd(Auth::check(), Auth::user());
+
+
+ Pepito Perez
-Grado: 1104
-- Último inicio de sesión: DD/MM/AAAA -
+ +{{Auth::user()->name}}
+Grado: 1104
++ Último inicio de sesión: DD/MM/AAAA +
+