summaryrefslogtreecommitdiff
path: root/httemplate/pref/pref.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-05-09 01:42:39 -0700
committerIvan Kohler <ivan@freeside.biz>2013-05-09 01:42:39 -0700
commit120718856665ca90ad852535d1155f8ea8ecb6b6 (patch)
tree2ac0472c1fd67ecc843619597f1cca7d8f774204 /httemplate/pref/pref.html
parentd8843f184a7f6ee87eec99724f2d6430c1df34ea (diff)
NG auth: pw changes, RT#21563
Diffstat (limited to 'httemplate/pref/pref.html')
-rw-r--r--httemplate/pref/pref.html34
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) %>