83 lines
3 KiB
PHP
83 lines
3 KiB
PHP
@extends('fo.layouts.layout')
|
|
|
|
@section('title', __('Reset your password'))
|
|
@section('description', __('Change your password.'))
|
|
|
|
@section('content')
|
|
<main class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-12 col-md-8 col-lg-6 my-5 text-center">
|
|
|
|
<h1 class="mb-2">{{ __('Reset Password') }}</h1>
|
|
<div class="h5 text-muted mb-4">{{ __('Choose your new password.') }}</div>
|
|
|
|
<form action="{{ route('fo.auth.reset-password.post', $token) }}" method="POST">
|
|
@csrf
|
|
|
|
{{-- GESTION DES ERREURS GLOBALES --}}
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger mb-4" role="alert">
|
|
<ul class="list-unstyled mb-0">
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
{{-- MESSAGE DE SUCCÈS --}}
|
|
@if (session('success'))
|
|
<div class="alert alert-success mb-4" role="alert">
|
|
{{ session('success') }}
|
|
</div>
|
|
@endif
|
|
|
|
{{-- EMAIL (HIDDEN) --}}
|
|
<input name="email" type="hidden" value="{{ old('email', $email) }}">
|
|
|
|
{{-- TOKEN (HIDDEN) --}}
|
|
<input name="token" type="hidden" value="{{ $token }}">
|
|
|
|
{{-- PASSWORD --}}
|
|
<div class="mb-3 text-start">
|
|
<div class="input-group">
|
|
<div class="form-floating">
|
|
<input class="form-control @error('password') is-invalid @enderror" id="password" name="password" type="password"
|
|
placeholder="{{ __('Password') }}" required autocomplete="new-password" autofocus>
|
|
<label for="password">{{ __('Password') }}</label>
|
|
</div>
|
|
<span class="password-visibility" data-json='@json(['id' => 'password'])'></span>
|
|
</div>
|
|
|
|
@error('password')
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ $message }}</strong>
|
|
</span>
|
|
@enderror
|
|
</div>
|
|
|
|
{{-- PASSWORD CONFIRM --}}
|
|
<div class="mb-4 text-start">
|
|
<div class="input-group">
|
|
<div class="form-floating">
|
|
<input class="form-control @error('password_confirmation') is-invalid @enderror" id="password-confirm"
|
|
name="password_confirmation" type="password" placeholder="{{ __('Confirm Password') }}" required
|
|
autocomplete="new-password">
|
|
<label for="password-confirm">{{ __('Confirm Password') }}</label>
|
|
</div>
|
|
<span class="password-visibility" data-json='@json(['id' => 'password-confirm'])'></span>
|
|
</div>
|
|
</div>
|
|
|
|
{{-- BOUTON DE SOUMISSION --}}
|
|
<div class="d-grid gap-2">
|
|
<button class="btn btn-primary rounded-4 py-2" type="submit">
|
|
{{ __('Reset Password') }}
|
|
</button>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
@endsection
|