summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-validate_password.html
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-08-29 14:09:58 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-09-09 18:46:49 -0400
commit985adebbccf51c25ebeb049675c78830b98246aa (patch)
tree042f6304e833222f2edb0b17c8bb929842b526c5 /httemplate/misc/xmlhttp-validate_password.html
parent9639c805abfdd2858a29576b767461c667bd5417 (diff)
RT# 75817 - updated UI to be more intuitive
Conflicts: httemplate/edit/cust_main-contacts.html httemplate/elements/contact.html
Diffstat (limited to 'httemplate/misc/xmlhttp-validate_password.html')
-rw-r--r--httemplate/misc/xmlhttp-validate_password.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/misc/xmlhttp-validate_password.html b/httemplate/misc/xmlhttp-validate_password.html
index b340170f8..95f1fd33c 100644
--- a/httemplate/misc/xmlhttp-validate_password.html
+++ b/httemplate/misc/xmlhttp-validate_password.html
@@ -29,14 +29,14 @@ my $validate_password = sub {
$result{'syserror'} = 'Invoked without password' unless $password;
return \%result if $result{'syserror'};
- if ($arg{'contactnum'}) {
+ if ($arg{'contactnum'} =~ /^\d+$/) {
my $contactnum = $arg{'contactnum'};
$result{'syserror'} = 'Invalid contactnum' unless $contactnum =~ /^\d*$/;
return \%result if $result{'syserror'};
my $contact = $contactnum
? qsearchs('contact',{'contactnum' => $contactnum})
- : '';
+ : (new FS::contact {});
$result{'error'} = $contact->is_password_allowed($password);
}