Replace login form with single Nextcloud OAuth button
Deploy / deploy (push) Successful in 17s

Removes email/password fields entirely; custom login page shows only
the blue "Mit Blue Spices Zanzibar Cloud anmelden" button.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-13 02:18:41 +02:00
1 parent c3f4e37d7c
commit 9ef73ca3f0
3 files changed
+26 -18

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Filament\Pages\Auth;
use Filament\Pages\Auth\Login as BaseLogin;
class Login extends BaseLogin
{
public function getView(): string
{
return 'filament.pages.auth.login';
}
}
+1 -18
View File
@@ -4,7 +4,6 @@ namespace App\Providers\Filament;
use Filament\Navigation\NavigationGroup; use Filament\Navigation\NavigationGroup;
use Filament\View\PanelsRenderHook; use Filament\View\PanelsRenderHook;
use Illuminate\Support\HtmlString;
use Filament\Http\Middleware\Authenticate; use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents; use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent; use Filament\Http\Middleware\DispatchServingFilamentEvent;
@@ -34,7 +33,7 @@ class UserPanelProvider extends PanelProvider
->default() ->default()
->path('dashboard') ->path('dashboard')
->font('Jost') ->font('Jost')
->login() ->login(\App\Filament\Pages\Auth\Login::class)
->colors([ ->colors([
'primary' => '#33ccff' 'primary' => '#33ccff'
]) ])
@@ -46,22 +45,6 @@ class UserPanelProvider extends PanelProvider
NavigationGroup::make('Ressourcen'), NavigationGroup::make('Ressourcen'),
NavigationGroup::make('CRM'), NavigationGroup::make('CRM'),
]) ])
->renderHook(
PanelsRenderHook::AUTH_LOGIN_FORM_AFTER,
fn () => new HtmlString(
'<div class="mt-4">'
. '<div class="relative flex items-center gap-3 py-1">'
. '<div class="h-px flex-1 bg-gray-200 dark:bg-gray-700"></div>'
. '<span class="text-xs text-gray-400 dark:text-gray-500">oder</span>'
. '<div class="h-px flex-1 bg-gray-200 dark:bg-gray-700"></div>'
. '</div>'
. '<a href="' . route('auth.nextcloud') . '" class="mt-3 flex w-full items-center justify-center gap-2 rounded-lg border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm transition hover:bg-gray-50 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700">'
. '<svg class="h-4 w-4" viewBox="0 0 50 50" fill="currentColor"><path d="M25 2C12.3 2 2 12.3 2 25s10.3 23 23 23 23-10.3 23-23S37.7 2 25 2zm0 7a7 7 0 110 14 7 7 0 010-14zm0 32c-5.8 0-10.9-2.9-14-7.3.1-4.6 9.3-7.2 14-7.2s13.9 2.5 14 7.2C35.9 38.1 30.8 41 25 41z"/></svg>'
. 'Mit Nextcloud anmelden'
. '</a>'
. '</div>'
)
)
->renderHook( ->renderHook(
PanelsRenderHook::SIDEBAR_FOOTER, PanelsRenderHook::SIDEBAR_FOOTER,
fn () => new HtmlString( fn () => new HtmlString(
@@ -0,0 +1,12 @@
<x-filament-panels::page.simple>
<a
href="{{ route('auth.nextcloud') }}"
class="flex w-full items-center justify-center gap-3 rounded-lg px-4 py-3 text-sm font-semibold text-white shadow-sm transition hover:opacity-90"
style="background-color: #33ccff"
>
<svg class="h-5 w-5 shrink-0" viewBox="0 0 50 50" fill="currentColor" aria-hidden="true">
<path d="M25 2C12.3 2 2 12.3 2 25s10.3 23 23 23 23-10.3 23-23S37.7 2 25 2zm0 7a7 7 0 110 14 7 7 0 010-14zm0 32c-5.8 0-10.9-2.9-14-7.3.1-4.6 9.3-7.2 14-7.2s13.9 2.5 14 7.2C35.9 38.1 30.8 41 25 41z"/>
</svg>
Mit Blue Spices Zanzibar Cloud anmelden
</a>
</x-filament-panels::page.simple>