You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.5 KiB
45 lines
1.5 KiB
% layout 'standard', title => 'Change Password', sb_active => 'password';
|
|
|
|
<h2 class="mt-5 display-6 mb-4">Change your password</h2>
|
|
|
|
% if ( $c->stash->{success} ) {
|
|
<div style="margin-top: 2em" class="alert alert-success" role="alert">
|
|
<%= $c->stash->{success_message} %>
|
|
</div>
|
|
% }
|
|
|
|
% if ( $c->stash->{errors} ) {
|
|
<div style="margin-top: 2em" class="alert alert-danger" role="alert">
|
|
There were errors with your request that could not be resolved:
|
|
<ul>
|
|
% for my $error ( @{$c->stash->{errors}} ) {
|
|
<li><%= $error %></li>
|
|
% }
|
|
</ul>
|
|
</div>
|
|
% }
|
|
|
|
|
|
<form style="margin-top: 1.5em" method="POST" action="<%= $c->url_for( 'do_change_password' ) %>">
|
|
|
|
<%= include '_base/form/input', type => 'password', name => 'password',
|
|
title => 'Your current password',
|
|
help => '',
|
|
value => $c->stash->{form_password}
|
|
%>
|
|
|
|
<%= include '_base/form/input', type => 'password', name => 'new_password',
|
|
title => 'Your new password',
|
|
help => '',
|
|
value => $c->stash->{form_new_password}
|
|
%>
|
|
|
|
<%= include '_base/form/input', type => 'password', name => 'password_confirm',
|
|
title => 'Confirm your new password',
|
|
help => '',
|
|
value => $c->stash->{form_password_confirm}
|
|
%>
|
|
|
|
|
|
<button type="submit" class="btn btn-primary float-end">Change Password</button>
|
|
</form>
|
|
|