From a5e611f5ffc045a59fee9e1b03f8ac79ef794d00 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 27 Feb 2013 12:34:17 -0800 Subject: "Edit password" ACL, #21178, part 1 --- httemplate/elements/change_password.html | 41 ++++++++++++++++++++++++++++++++ httemplate/elements/random_pass.html | 17 +++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 httemplate/elements/change_password.html create mode 100644 httemplate/elements/random_pass.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html new file mode 100644 index 000000000..625ba1fb5 --- /dev/null +++ b/httemplate/elements/change_password.html @@ -0,0 +1,41 @@ + +(<% mt('change') %>) +
+
+ + + <& /elements/random_pass.html, $pre.'password', 'randomize' &> + + +% if ( $error ) { +
<% $error |h %> +% } +
+
+ +<%init> +my %opt = @_; +my $svc_acct = $opt{'svc_acct'}; +my $curr_value = $opt{'curr_value'} || ''; +my $pre = 'changepw'.$svc_acct->svcnum.'_'; +my $error = $cgi->param($pre.'error'); + diff --git a/httemplate/elements/random_pass.html b/httemplate/elements/random_pass.html new file mode 100644 index 000000000..b215b77d9 --- /dev/null +++ b/httemplate/elements/random_pass.html @@ -0,0 +1,17 @@ + + +<%init> +my $id = shift; +my $label = shift || 'Generate'; + -- cgit v1.2.1