travelynx/templates/recover_password.html.ep

48 lines
1.5 KiB
Text
Raw Normal View History

<h1>Passwort zurücksetzen</h1>
% if (my $invalid = stash('invalid')) {
%= include '_invalid_input', invalid => $invalid
% }
% if (stash('success')) {
<div class="row">
<div class="col s12">
2019-05-16 14:10:53 +00:00
<div class="card success-color">
<div class="card-content white-text">
<span class="card-title">Passwort-Reset wird durchgeführt</span>
<p>
Ein für zwei Tage gültiger Reset-Link wurde an deine
Mail-Adresse verschickt. Sobald du damit ein neues Passwort
gesetzt hast, kannst du dich wieder anmelden.
</p>
</div>
</div>
</div>
</div>
% }
%= form_for '/recover' => (method => 'POST') => begin
%= csrf_field
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
%= text_field 'user', id => 'user', class => 'validate', required => undef, maxlength => 60, autocomplete => 'username'
<label for="user">Account</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">email</i>
%= email_field 'email', id => 'email', class => 'validate', required => undef, maxlength => 250
<label for="email">Mail-Adresse</label>
</div>
</div>
<div class="row">
<div class="col s3 m3 l3">
</div>
<div class="col s6 m6 l6 center-align">
<button class="btn waves-effect waves-light" type="submit" name="action" value="initiate">
Passwort-Reset
<i class="material-icons right">send</i>
</button>
</div>
<div class="col s3 m3 l3">
</div>
</div>
%= end