25 lines
1.3 KiB
HTML
25 lines
1.3 KiB
HTML
{{define "content"}}
|
|
<div class="mx-auto w-full max-w-96 rounded-xl border border-gray-200 px-6 py-8">
|
|
<div class="mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-violet-100">
|
|
<svg class="h-8 w-8 text-violet-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 11V7a4 4 0 118 0v4m-8 0h8m-8 0H5m14 0v8a2 2 0 01-2 2H7a2 2 0 01-2-2v-8"></path>
|
|
</svg>
|
|
</div>
|
|
|
|
<h3 class="mb-6 text-center text-xl font-bold text-gray-800">Reset Password</h3>
|
|
|
|
{{if .Token}}
|
|
<form action="/reset-password?token={{.Token}}" method="post">
|
|
<div class="mb-6">
|
|
<label class="mb-1 block text-sm font-medium text-gray-700">Nuova password</label>
|
|
<input type="password" name="password" class="w-full rounded-lg border border-gray-300 px-3 py-2 transition outline-none focus:border-violet-500 focus:ring-2 focus:ring-violet-500" required />
|
|
</div>
|
|
|
|
<button type="submit" class="w-full rounded-lg bg-violet-500 px-4 py-2 font-medium text-white transition duration-300 hover:bg-violet-600">Aggiorna password</button>
|
|
</form>
|
|
{{else}}
|
|
<p class="text-center text-sm text-gray-500">Token mancante o non valido.</p>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|