74 lines
4.9 KiB
PHP
74 lines
4.9 KiB
PHP
@extends('fo.layout')
|
|
|
|
@section('title', __('Changement de votre mot de passe'))
|
|
@section('description', __('Changement de votre mot de passe d\'accès au Klub Tre Galette'))
|
|
@section('breadcrumb',
|
|
request()->route()->getName())
|
|
|
|
@section('main-bg-class', 'bg-textured')
|
|
|
|
@section('content')
|
|
<div class="container pb-5">
|
|
<div class="row justify-content-center mb-5">
|
|
<div class="col col-md-8 rounded-2 klub-decorated bg-white p-4 pt-5 text-center">
|
|
<h1 class="fs-1 text-primary text-center">{{ __('Réinitialiser votre') }} <span
|
|
class="text-tertiary">{{ __('Mot de passe') }}</span></h1>
|
|
<img class="img-fluid flex-shrink-1 mb-3 flex-grow-0"
|
|
src="{{ Vite::asset('resources/assets/images/global/underline-yellow.svg') }}" alt="{{ __('Trait souligné') }}">
|
|
<form class="w-100" method="POST" action="{{ route('fo.klub.passwordSubmit') }}">
|
|
@csrf
|
|
|
|
<fieldset class="container-fluid p-md-5">
|
|
<div class="row justify-content-center">
|
|
<div class="col col-md-10 col-lg-8 input-group d-flex justify-content-center py-2">
|
|
<input class="form-control custom-input-password @if ($errors->has('old_password')) is-invalid @endif"
|
|
id="old_password" name="old_password" type="password" placeholder="{{ __('Votre mot de passe actuel') }}*"
|
|
autocomplete="current-password" required>
|
|
@php $dataPassword = ['inputId' => 'old_password']; @endphp
|
|
<span class="btn btn-primary password-visibility p-0" data-json='@json($dataPassword)'></span>
|
|
</div>
|
|
@foreach ($errors->get('old_password') as $message)
|
|
<div class="invalid-feedback d-block text-center">{{ $message }}</div>
|
|
@endforeach
|
|
</div>
|
|
<div class="row justify-content-center">
|
|
<div class="col col-md-10 col-lg-8 input-group d-flex justify-content-center py-2">
|
|
<input class="form-control custom-input-password @if ($errors->has('password')) is-invalid @endif"
|
|
id="password" name="password" type="password" placeholder="{{ __('Votre nouveau mot de passe') }}*"
|
|
autocomplete="new-password" required>
|
|
@php $dataPassword = ['inputId' => 'password']; @endphp
|
|
<span class="btn btn-primary password-visibility p-0" data-json='@json($dataPassword)'></span>
|
|
</div>
|
|
@foreach ($errors->get('password') as $message)
|
|
<div class="invalid-feedback d-block text-center">{{ $message }}</div>
|
|
@endforeach
|
|
</div>
|
|
<div class="row justify-content-center">
|
|
<div class="col col-md-10 col-lg-8 input-group d-flex justify-content-center py-2">
|
|
<input class="form-control custom-input-password @if ($errors->has('password_confirmation')) is-invalid @endif"
|
|
id="password_confirmation" name="password_confirmation" type="password"
|
|
placeholder="{{ __('Confirmer votre nouveau mot de passe') }}*" autocomplete="new-password" required>
|
|
@php $dataPassword = ['inputId' => 'password_confirmation']; @endphp
|
|
<span class="btn btn-primary password-visibility p-0" data-json='@json($dataPassword)'></span>
|
|
</div>
|
|
@foreach ($errors->get('password_confirmation') as $message)
|
|
<div class="invalid-feedback d-block text-center">{{ $message }}</div>
|
|
@endforeach
|
|
</div>
|
|
</fieldset>
|
|
<div class="py-2 text-center">
|
|
<p>
|
|
Le mot de passe doit avoir une longueur de 8 caractères minimum,<br>
|
|
doit contenir une lettre majuscule et une lettre minucule<br>
|
|
doit contenir un caractère spécial comme une virgule par exemple<br>
|
|
doit contenir un chiffre
|
|
</p>
|
|
</div>
|
|
<div class="text-md-end mx-5 px-5 py-2 text-center">
|
|
<button class="btn btn-lg btn-primary text-tertiary w-fit" type="submit">{{ __('Modifier') }}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|