[%# Change password Authors: Afuna Copyright (c) 2015 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- sections.title = ".title" | ml -%] [%- CALL dw.active_resource_group( "foundation" ) -%]
[%- dw.form_auth -%] [%- form.hidden( name = "mode", value = "submit" ) -%] [%- IF needs_validation -%]
[%- '.error.notvalidated' | ml -%]
[%- END -%] [%- IF authu -%]
[%- '.header.username' | ml -%]
[%- authu.ljuser_display -%]
[%- ELSE -%]
[%- form.textbox( label = dw.ml( '.header.username' ) name = 'user' maxlength = site.maxlength_user ) -%]
[%- form.password( label = dw.ml( ".currentpassword" ) name = "password" maxlength = site.maxlength_pass ) -%]
[%- END -%]
[%- form.password( label = dw.ml( ".newpassword" ) name = "newpass1" maxlength = site.maxlength_pass + 1 ) -%]
[%- form.password( label = dw.ml( ".newpasswordagain" ) name = "newpass2" maxlength = site.maxlength_pass + 1 ) -%]
[%- form.submit( value = dw.ml( '.btn.proceed' ) ) -%]