mirror of
https://github.com/derf/travelynx
synced 2024-12-12 05:52:33 +00:00
34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
% if (my $invalid = stash('invalid')) {
|
|
%= include '_invalid_input', invalid => $invalid
|
|
% }
|
|
|
|
<h1>Neues Passwort eintragen</h1>
|
|
%= form_for '/recover' => (method => 'POST') => begin
|
|
%= csrf_field
|
|
%= hidden_field 'id' => param('id')
|
|
%= hidden_field 'token' => param('token')
|
|
<div class="row">
|
|
<div class="input-field col l6 m12 s12">
|
|
<i class="material-icons prefix">lock</i>
|
|
%= password_field 'newpw', id => 'password', class => 'validate', required => undef, minlength => 8, autocomplete => 'new-password'
|
|
<label for="password">Neues Passwort</label>
|
|
</div>
|
|
<div class="input-field col l6 m12 s12">
|
|
<i class="material-icons prefix">lock</i>
|
|
%= password_field 'newpw2', id => 'password2', class => 'validate', required => undef, minlength => 8, autocomplete => 'new-password'
|
|
<label for="password2">Passwort wiederholen</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="set_password">
|
|
Eintragen
|
|
<i class="material-icons right">send</i>
|
|
</button>
|
|
</div>
|
|
<div class="col s3 m3 l3">
|
|
</div>
|
|
</div>
|
|
%= end
|