diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-05-09 01:42:39 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-05-09 01:42:39 -0700 |
commit | 120718856665ca90ad852535d1155f8ea8ecb6b6 (patch) | |
tree | 2ac0472c1fd67ecc843619597f1cca7d8f774204 /httemplate/pref/pref.html | |
parent | d8843f184a7f6ee87eec99724f2d6430c1df34ea (diff) |
NG auth: pw changes, RT#21563
Diffstat (limited to 'httemplate/pref/pref.html')
-rw-r--r-- | httemplate/pref/pref.html | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 9861c3f85..dc44db0b0 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -4,28 +4,30 @@ <% include('/elements/error.html') %> +% if ( FS::Auth->auth_class->can('change_password') ) { -<% mt('Change password (leave blank for no change)') |h %> -<% ntable("#cccccc",2) %> + <% mt('Change password (leave blank for no change)') |h %> + <% ntable("#cccccc",2) %> - <TR> - <TH ALIGN="right">Current password: </TH> - <TD><INPUT TYPE="password" NAME="_password"></TD> - </TR> + <TR> + <TH ALIGN="right">Current password: </TH> + <TD><INPUT TYPE="password" NAME="_password"></TD> + </TR> - <TR> - <TH ALIGN="right">New password: </TH> - <TD><INPUT TYPE="password" NAME="new_password"></TD> - </TR> + <TR> + <TH ALIGN="right">New password: </TH> + <TD><INPUT TYPE="password" NAME="new_password"></TD> + </TR> - <TR> - <TH ALIGN="right">Re-enter new password: </TH> - <TD><INPUT TYPE="password" NAME="new_password2"></TD> - </TR> + <TR> + <TH ALIGN="right">Re-enter new password: </TH> + <TD><INPUT TYPE="password" NAME="new_password2"></TD> + </TR> -</TABLE> -<BR> + </TABLE> + <BR> +% } Interface <% ntable("#cccccc",2) %> |