mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 17:18:04 +02:00
Fixed CP password reset
This commit is contained in:
parent
fbc62d587f
commit
af5bbacfe7
6 changed files with 77 additions and 36 deletions
|
@ -23,7 +23,6 @@
|
|||
</div>
|
||||
<div class="form-footer">
|
||||
<button type="submit" class="btn btn-primary w-100">
|
||||
<!-- Download SVG icon from http://tabler-icons.io/i/mail -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><rect x="3" y="5" width="18" height="14" rx="2" /><polyline points="3 7 12 13 21 7" /></svg>
|
||||
Send me new password
|
||||
</button>
|
||||
|
|
|
@ -1,29 +1,41 @@
|
|||
{% extends "layouts/auth.twig" %}
|
||||
|
||||
{% block title %}Update Password{% endblock %}
|
||||
{% block title %}Reset Password{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="{{route('update.password')}}" name="register" method="post">
|
||||
{{ csrf.field | raw }}
|
||||
<input type="hidden" name="selector" value="{{selector}}">
|
||||
<input type="hidden" name="token" value="{{token}}">
|
||||
<div class="row d-flex align-items-center justify-content-center">
|
||||
<div class="col-md-6">
|
||||
<div class="card px-5 py-5">
|
||||
<h5 class="mt-3">Reset Password</h5>
|
||||
<div class="form-input{{ errors.password ? ' has-error' : '' }}">
|
||||
<i class="fa fa-lock"></i> <input type="password" name="password" class="form-control" placeholder="Enter password">
|
||||
{% if errors.password %}
|
||||
<span class="hel-block">{{ errors.password | first }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<i class="fa fa-lock"></i> <input type="password" name="password2" class="form-control" placeholder="Re-enter password">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary mt-4 signup">Reset Password</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
<div class="page page-center">
|
||||
<div class="container container-tight py-4">
|
||||
<div class="text-center mb-4">
|
||||
<a href="." class="navbar-brand navbar-brand-autodark"><img src="./static/logo-bw.svg" height="36" alt=""></a>
|
||||
{% include 'partials/flash.twig' %}
|
||||
</div>
|
||||
<form class="card card-md" action="{{route('update.password')}}" name="register" method="post" autocomplete="off">
|
||||
{{ csrf.field | raw }}
|
||||
<input type="hidden" name="selector" value="{{selector}}">
|
||||
<input type="hidden" name="token" value="{{token}}">
|
||||
<div class="card-body">
|
||||
<h2 class="card-title text-center mb-4">Reset Password</h2>
|
||||
<p class="text-muted mb-4">You're just a step away from resetting your password. Please enter your new password below. Make sure it's strong and unique to keep your account secure.</p>
|
||||
<div class="mb-3 form-input{{ errors.password ? ' has-error' : '' }}">
|
||||
<i class="fa fa-lock"></i> <input type="password" name="password" class="form-control" placeholder="Enter password">
|
||||
{% if errors.password %}
|
||||
<span class="hel-block">{{ errors.password | first }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<i class="fa fa-lock"></i> <input type="password" name="password2" class="form-control" placeholder="Re-enter password">
|
||||
</div>
|
||||
<div class="form-footer">
|
||||
<button type="submit" class="btn btn-primary w-100">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
||||
Reset Password
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="text-center text-muted mt-3">
|
||||
Forget it, <a href="{{route('login')}}">send me back</a> to the sign in screen.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue