where('nostr', $pubkey)->first(); if ($user) { Auth::loginUsingId($user->id); Session::regenerate(); $this->redirectIntended(default: route_with_country('dashboard', absolute: false), navigate: true); return; } return; $this->validate(); $this->ensureIsNotRateLimited(); if (!Auth::attempt(['email' => $this->email, 'password' => $this->password], $this->remember)) { RateLimiter::hit($this->throttleKey()); throw ValidationException::withMessages([ 'email' => __('auth.failed'), ]); } RateLimiter::clear($this->throttleKey()); Session::regenerate(); $this->redirectIntended(default: route_with_country('dashboard', absolute: false), navigate: true); } /** * Ensure the authentication request is not rate limited. */ protected function ensureIsNotRateLimited(): void { if (!RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { return; } event(new Lockout(request())); $seconds = RateLimiter::availableIn($this->throttleKey()); throw ValidationException::withMessages([ 'email' => __('auth.throttle', [ 'seconds' => $seconds, 'minutes' => ceil($seconds / 60), ]), ]); } /** * Get the authentication rate limiting throttle key. */ protected function throttleKey(): string { return Str::transliterate(Str::lower($this->email).'|'.request()->ip()); } }; ?>
{{ __('Willkommen zurück') }} {{--
Continue with Google Continue with GitHub
--}} {{----}}
{{----}} {{--
Password @if (Route::has('password.request')) Forgot password? @endif
--}} {{----}} {{ __('Log in mit Nostr') }}
{{--@if (Route::has('register')) First time around here? Sign up for free @endif--}}
Bitcoin, not blockchain. Bitcoin, not crypto.
Gigi
bitcoiner and software engineer