mirror of
https://github.com/derf/travelynx
synced 2024-11-10 23:14:16 +00:00
47 lines
1.5 KiB
Text
47 lines
1.5 KiB
Text
<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">
|
|
<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
|