62 lines
2.6 KiB
PHP
62 lines
2.6 KiB
PHP
<!--<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Change Password</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
</head>
|
|
<body>-->
|
|
@extends('adminlte::page')
|
|
@section('content_header')
|
|
<h1>Change Password</h1>
|
|
@endsection
|
|
@section('content')
|
|
<div class="container mt-5">
|
|
|
|
|
|
@if (session('success'))
|
|
<div class="alert alert-success" role="alert">
|
|
{{ session('success') }}
|
|
</div>
|
|
@endif
|
|
|
|
<form method="POST" action="{{ route('changePassword') }}">
|
|
@csrf
|
|
|
|
<div class="mb-3">
|
|
<label for="current_password" class="form-label">Attuale Password</label>
|
|
<input type="password" class="form-control @error('current_password') is-invalid @enderror" id="current_password" name="current_password" required>
|
|
@error('current_password')
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ ($message) }}</strong>
|
|
</span>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="new_password" class="form-label">Nuova Password</label>
|
|
<input type="password" class="form-control @error('new_password') is-invalid @enderror" id="new_password" name="new_password" required>
|
|
@error('new_password')
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ ($message) }}</strong>
|
|
</span>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="new_password_confirmation" class="form-label">Conferma nuova Password</label>
|
|
<input type="password" class="form-control @error('new_password_confirmation') is-invalid @enderror" id="new_password_confirmation" name="new_password_confirmation" required>
|
|
@error('new_password_confirmation')
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ ($message) }}</strong>
|
|
</span>
|
|
@enderror
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary">Change Password</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
@endsection
|