From b55c7da9765e3ccf6305b558ac38e12948f1891c Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Sat, 17 Jan 2026 17:10:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Clean=20up=20Blade=20sy?= =?UTF-8?q?ntax=20and=20JS=20attribute=20bindings=20in=20`login.blade.php`?= =?UTF-8?q?=20for=20improved=20readability=20and=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/livewire/auth/login.blade.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/views/livewire/auth/login.blade.php b/resources/views/livewire/auth/login.blade.php index ffa1408..a5738af 100644 --- a/resources/views/livewire/auth/login.blade.php +++ b/resources/views/livewire/auth/login.blade.php @@ -57,7 +57,7 @@ class extends Component { $this->lnurl = lnurl\encodeUrl($this->url); $image = 'public/img/domains/'.session('lang_country', 'de-DE').'.jpg'; $checkIfFileExists = base_path($image); - if (! file_exists($checkIfFileExists)) { + if (!file_exists($checkIfFileExists)) { $image = 'public/img/domains/de-DE.jpg'; } $this->qrCode = base64_encode(QrCode::format('png') @@ -72,7 +72,7 @@ class extends Component { public function loginListener($pubkey): void { $user = \App\Models\User::query()->where('nostr', $pubkey)->first(); - if (! $user) { + if (!$user) { $fakeName = str()->random(10); // create User $user = User::create([ @@ -104,7 +104,7 @@ class extends Component { $this->ensureIsNotRateLimited(); - if (! Auth::attempt(['email' => $this->email, 'password' => $this->password], $this->remember)) { + if (!Auth::attempt(['email' => $this->email, 'password' => $this->password], $this->remember)) { RateLimiter::hit($this->throttleKey()); throw ValidationException::withMessages([ @@ -131,7 +131,7 @@ class extends Component { */ protected function ensureIsNotRateLimited(): void { - if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { + if (!RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { return; } @@ -210,7 +210,7 @@ class extends Component {
+ x-on:auth-error.window="showAuthError($event.detail)">