Skip to content

Commit

Permalink
added avatar name
Browse files Browse the repository at this point in the history
  • Loading branch information
MarJose123 committed Aug 22, 2023
1 parent 380ef26 commit 4f1efa1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions resources/views/page/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class="fi-simple-main my-16 w-full bg-white px-6 py-12 shadow-sm ring-1 ring-gra
<div class="flex flex-row justify-center">
<img class="w-56 h-56 rounded-full" src="{{ \Filament\Facades\Filament::getUserAvatarUrl(\Filament\Facades\Filament::auth()->user())}}" alt="avatar">
</div>
<div class="flex flex-row justify-center">
<div class="font-medium dark:text-white">
<div>{{\Filament\Facades\Filament::auth()->user()?->name ?? ''}}</div>
</div>
</div>

<x-filament-panels::form wire:submit="authenticate">
{{ $this->form }}
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Livewire/LockerScreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ class LockerScreen extends BasePage

public function mount()
{
/*session(['lockscreen' => true]);
session(['lockscreen' => true]);
if (! config('filament-lockscreen.enable_redirect_to')) {
if (! session()->has('next') || session()->get('next') === null) {
session(['next' => url()->previous()]);
}
}*/
}
}

protected function forceLogout()
Expand Down
1 change: 0 additions & 1 deletion src/Http/Middleware/Locker.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public function handle($request, Closure $next)
$panelId = filament()->getCurrentPanel()->getId();
return redirect()->route("lockscreen.{$panelId}.page");
}

return $next($request);
}
}

0 comments on commit 4f1efa1

Please sign in to comment.