1 <% include("/elements/header-popup.html", $title) %>
2 For Contact <% $contact->first %> <% $contact->last %>
4 <& /elements/change_password.html,
5 'contact_num' => $contactnum,
14 my $curuser = $FS::CurrentUser::CurrentUser;
16 $cgi->param('contactnum') =~ /^(\d+)$/ or die "illegal contactnum" if $cgi->param('contactnum');
19 $cgi->param('custnum') =~ /^(\d+)$/ or die "illegal customernum" if $cgi->param('custnum');
22 my $label = "change password";
23 $label = "set password" unless ($cgi->param('label') eq "change");
25 $title =~ s/\b(\w)/\U$1/g;
27 my $popup = $cgi->param('popup');
30 unless $curuser->access_right(($custnum ? 'Edit' : 'New'). ' customer'); #password?
32 my $contact = qsearchs('contact', { 'contactnum' => $contactnum } );