35 lines
1.6 KiB
HTML
35 lines
1.6 KiB
HTML
{{define "title"}}Reset Password{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="mx-auto max-w-sm">
|
|
<h2 class="text-2xl font-bold text-gray-900 text-center">Set new password</h2>
|
|
|
|
{{with .Data}}
|
|
{{if .Error}}
|
|
<div class="mt-4 rounded-md bg-red-50 p-4">
|
|
<p class="text-sm text-red-800">{{.Error}}</p>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
|
|
<form method="POST" action="/reset-password" class="mt-8 space-y-6">
|
|
<input type="hidden" name="gorilla.csrf.Token" value="{{.CSRFToken}}">
|
|
<input type="hidden" name="token" value="{{with .Data}}{{.Token}}{{end}}">
|
|
|
|
<div>
|
|
<label for="password" class="block text-sm font-medium text-gray-700">New Password</label>
|
|
<input type="password" name="password" id="password" required minlength="8"
|
|
class="mt-1 block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="confirm_password" class="block text-sm font-medium text-gray-700">Confirm New Password</label>
|
|
<input type="password" name="confirm_password" id="confirm_password" required
|
|
class="mt-1 block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500">
|
|
</div>
|
|
|
|
<button type="submit" class="w-full rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow hover:bg-blue-500">Reset password</button>
|
|
</form>
|
|
</div>
|
|
{{end}}
|