diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-08-29 14:09:58 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-09-09 16:42:55 -0400 |
| commit | 93ef20155af222e8b3f0737715975e0fc86741b0 (patch) | |
| tree | ce1ed19f090afb78f5f24bbe1561f45855bc0313 /httemplate/misc/xmlhttp-validate_password.html | |
| parent | fe0e5a810960200b5352128139e6b040ea08eada (diff) | |
RT# 75817 - updated UI to be more intuitive
Diffstat (limited to 'httemplate/misc/xmlhttp-validate_password.html')
| -rw-r--r-- | httemplate/misc/xmlhttp-validate_password.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/misc/xmlhttp-validate_password.html b/httemplate/misc/xmlhttp-validate_password.html index 4d9716bb9..c53abe883 100644 --- a/httemplate/misc/xmlhttp-validate_password.html +++ b/httemplate/misc/xmlhttp-validate_password.html @@ -28,14 +28,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); } |
