X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Faccess_user.html;h=224d8d722bdd43a94019fc3da69e4ebc6d654124;hb=0930d22ffc440f80c1b222b2e750cadbabd9e8f6;hp=df580a20d7c2370b4ed1a1212487aece4ba2350b;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html index df580a20d..224d8d722 100644 --- a/httemplate/edit/access_user.html +++ b/httemplate/edit/access_user.html @@ -4,6 +4,7 @@ 'fields' => [ 'username', { field=>'_password', type=>'password' }, + { field=>'_password2', type=>'password' }, 'last', 'first', { field=>'disabled', type=>'checkbox', value=>'Y' }, @@ -12,10 +13,14 @@ 'usernum' => 'User number', 'username' => 'Username', '_password' => 'Password', + '_password2'=> 'Re-enter Password', 'last' => 'Last name', 'first' => 'First name', 'disabled' => 'Disable employee', }, + 'edit_callback' => sub { my( $c, $o ) = @_; + $o->set('_password', ''); + }, 'viewall_dir' => 'browse', 'html_bottom' => sub { @@ -37,3 +42,9 @@ }, ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +