Skip to content

Commit 9ff7777

Browse files
committed
feat: (LAR-77) Retrait des commentaires
1 parent c75ce35 commit 9ff7777

File tree

5 files changed

+130
-276
lines changed

5 files changed

+130
-276
lines changed

app/Livewire/Forms/LoginForm.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ public function __construct(Component $component = null, string $name = 'form')
2222
parent::__construct($component, $name);
2323
}
2424

25-
/**
26-
* Attempt to authenticate the request's credentials.
27-
*
28-
* @throws \Illuminate\Validation\ValidationException
29-
*/
3025
public function authenticate(): void
3126
{
3227
$this->ensureIsNotRateLimited();
@@ -42,9 +37,6 @@ public function authenticate(): void
4237
RateLimiter::clear($this->throttleKey());
4338
}
4439

45-
/**
46-
* Ensure the authentication request is not rate limited.
47-
*/
4840
protected function ensureIsNotRateLimited(): void
4941
{
5042
if (!RateLimiter::tooManyAttempts($this->throttleKey(), 5)) {
@@ -63,9 +55,6 @@ protected function ensureIsNotRateLimited(): void
6355
]);
6456
}
6557

66-
/**
67-
* Get the authentication rate limiting throttle key.
68-
*/
6958
protected function throttleKey(): string
7059
{
7160
return Str::transliterate(Str::lower($this->email) . '|' . request()->ip());

app/Livewire/Pages/Auth/Login.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Livewire\Attributes\Layout;
1111
use Livewire\Component;
1212

13-
// #[Layout('layouts.guest')]
1413
final class Login extends Component
1514
{
1615
public LoginForm $form;

app/Providers/VoltServiceProvider.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@
99

1010
final class VoltServiceProvider extends ServiceProvider
1111
{
12-
/**
13-
* Register services.
14-
*/
1512
public function register(): void
1613
{
17-
//
14+
1815
}
1916

20-
/**
21-
* Bootstrap services.
22-
*/
2317
public function boot(): void
2418
{
2519
Volt::mount([

resources/views/livewire/pages/auth/login.blade.php

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
{
1212
public LoginForm $form;
1313
14-
/**
15-
* Handle an incoming authentication request.
16-
*/
1714
public function login(): void
1815
{
1916
$this->validate();
@@ -25,7 +22,6 @@ public function login(): void
2522
$this->redirectIntended(default: route('dashboard', absolute: false), navigate: true);
2623
}
2724
}; ?>
28-
{{-- <x-app-layout :title="__('pages/auth.login.page_title')"> --}}
2925
<div>
3026
<x-container class="flex min-h-full items-center justify-center py-16 sm:pt-24">
3127
<div class="w-full max-w-md space-y-8">
@@ -37,7 +33,6 @@ public function login(): void
3733
<form class="space-y-6" wire:submit.prevent="login">
3834
@csrf
3935
<div class="space-y-4">
40-
<!-- Email Input -->
4136
<div class="space-y-1">
4237
<label for="email" class="block text-sm font-medium text-gray-700 dark:text-gray-300">
4338
{{ __('validation.attributes.email') }}
@@ -56,7 +51,6 @@ class="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:
5651
@enderror
5752
</div>
5853

59-
<!-- Password Input -->
6054
<div class="space-y-1">
6155
<label for="password" class="block text-sm font-medium text-gray-700 dark:text-gray-300">
6256
{{ __('validation.attributes.password') }}
@@ -77,7 +71,6 @@ class="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:
7771
</div>
7872

7973
<div class="flex items-center justify-between">
80-
<!-- Remember Me Checkbox -->
8174
<div class="flex items-center">
8275
<input
8376
type="checkbox"
@@ -90,7 +83,6 @@ class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"
9083
</label>
9184
</div>
9285

93-
<!-- Forgot Password Link -->
9486
<div class="text-sm">
9587
<a href="{{ route('password.request') }}" class="font-medium text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-white">
9688
{{ __('pages/auth.login.forgot_password') }}
@@ -113,78 +105,6 @@ class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"
113105

114106
<x-join-sponsors :title="__('global.sponsor_thanks')" />
115107
</div>
116-
117-
{{-- </x-app-layout> --}}
118-
119-
120-
{{-- <x-app-layout :title="__('pages/auth.login.page_title')">
121-
<x-container class="flex min-h-full items-center justify-center py-16 sm:pt-24">
122-
<div class="w-full max-w-md space-y-8">
123-
<div>
124-
<h2 class="text-center font-heading text-3xl font-extrabold text-gray-900 dark:text-white">
125-
{{ __('pages/auth.login.title') }}
126-
</h2>
127-
</div>
128-
<form class="space-y-6" action="{{ route('login') }}" method="POST">
129-
@csrf
130-
<div class="space-y-4">
131-
<x-filament::input.wrapper>
132-
<x-filament::input
133-
type="text"
134-
id="email-address"
135-
name="email"
136-
autocomplete="email"
137-
required="true"
138-
aria-label="{{ __('validation.attributes.email') }}"
139-
:placeholder="__('validation.attributes.email')"
140-
/>
141-
</x-filament::input.wrapper>
142-
<x-filament::input.wrapper>
143-
<x-filament::input
144-
type="password"
145-
id="password"
146-
name="password"
147-
required="true"
148-
aria-label="{{ __('validation.attributes.password') }}"
149-
:placeholder="__('validation.attributes.password')"
150-
/>
151-
</x-filament::input.wrapper>
152-
</div>
153-
154-
<div class="flex items-center justify-between">
155-
<div class="flex items-center">
156-
<label class="inline-flex items-center gap-2 cursor-pointer text-sm text-gray-500 dark:text-gray-400">
157-
<x-filament::input.checkbox id="remember_me" name="remember_me" />
158-
{{ __('pages/auth.login.remember_me') }}
159-
</label>
160-
</div>
161-
162-
<div class="text-sm">
163-
<x-link
164-
:href="route('password.request')"
165-
class="font-medium text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-white"
166-
>
167-
{{ __('pages/auth.login.forgot_password') }}
168-
</x-link>
169-
</div>
170-
</div>
171-
172-
<div>
173-
<x-buttons.primary type="submit" class="group relative w-full">
174-
<span class="absolute pointer-events-none inset-y-0 left-0 flex items-center pl-3">
175-
<x-untitledui-lock class="size-5 text-green-500 group-hover:text-green-600" aria-hidden="true" />
176-
</span>
177-
{{ __('pages/auth.login.submit') }}
178-
</x-buttons.primary>
179-
</div>
180-
</form>
181-
182-
@include('partials._socials-link')
183-
</div>
184-
</x-container>
185-
186-
<x-join-sponsors :title="__('global.sponsor_thanks')" />
187-
</x-app-layout> --}}
188108

189109

190110

0 commit comments

Comments
 (0)