login update

This commit is contained in:
2026-03-05 11:24:37 +01:00
parent 5a33ca55a1
commit f6772f673b
67 changed files with 10640 additions and 116 deletions

View File

@@ -24,6 +24,9 @@
<link rel="next" href="{{ $page_rel_next }}" />
@endisset
{{-- Global RSS feed discovery --}}
<link rel="alternate" type="application/rss+xml" title="Skinbase Latest Artworks" href="{{ url('/rss') }}">
<!-- Icons (kept for now to preserve current visual output) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" />

View File

@@ -223,7 +223,10 @@
$routeEditProfile = Route::has('dashboard.profile')
? route('dashboard.profile')
: (Route::has('settings') ? route('settings') : '/settings');
$routePublicProfile = Route::has('profile.show') ? route('profile.show', ['username' => $toolbarUsername]) : '/@'.$toolbarUsername;
// Guard: username may be null for OAuth users still in onboarding.
$routePublicProfile = $toolbarUsername !== ''
? (Route::has('profile.show') ? route('profile.show', ['username' => $toolbarUsername]) : '/@'.$toolbarUsername)
: route('setup.username.create');
@endphp
<a class="flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-white/5" href="{{ $routeUpload }}">
@@ -333,7 +336,10 @@
@php
$mobileUsername = strtolower((string) (Auth::user()->username ?? ''));
$mobileProfile = Route::has('profile.show') ? route('profile.show', ['username' => $mobileUsername]) : '/@'.$mobileUsername;
// Guard: username may be null for OAuth users still in onboarding.
$mobileProfile = $mobileUsername !== ''
? (Route::has('profile.show') ? route('profile.show', ['username' => $mobileUsername]) : '/@'.$mobileUsername)
: route('setup.username.create');
@endphp
<div class="pt-1 pb-1 px-3 text-[11px] font-semibold uppercase tracking-widest text-sb-muted">My Account</div>
<a class="flex items-center gap-3 py-2.5 px-3 rounded-lg hover:bg-white/5" href="/studio/artworks">