% layout 'default', title => "User password"; % content_for 'module' => begin
% if ($config->{debug} == 1) {

%= dumper $c->current_route %= dumper $pwd_datas

% }

%= l 'pwd_ACCOUNT_PASSWORD_CHANGE'

% if ( stash 'error' ) {
%= $c->render_to_string(inline => stash 'error')
%}

% my $btn = l('pwd_PASSWORD_CHANGE'); % my $url = '/userpassword'; %= $c->render_to_string( inline => l('pwd_DESCRIPTION')); % if ( $pwd_datas->{trt} eq 'RESET' ) { % $btn = l('pwd_PASSWORD_RESET'); % $url = '/userpasswordr'; %= $c->render_to_string( inline => l('pwd_DESCRIPTION_RESET')); % }

%= form_for $url => (method => 'POST') => begin

%= l 'pwd_YOUR_ACCOUNT' %= $pwd_datas->{Account} %= hidden_field 'User' => $pwd_datas->{Account} %= hidden_field 'Trt' => $pwd_datas->{trt} %= hidden_field 'jwt' => $pwd_datas->{jwt}

% if ( $pwd_datas->{trt} ne 'RESET' ) {

%= l 'pwd_PASSWORD_OLD' %= password_field 'Oldpass', class => 'input'

% }

%=l 'pwd_PASSWORD_NEW' %= password_field 'Pass', class => 'input'

%=l 'pwd_PASSWORD_VERIFY_NEW' %= password_field 'Passverify', class => 'input'

%= submit_button "$btn", class => 'action'
% end
% end