X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_acct.cgi;h=f2b8e0c4a4adc8200daf4a25d97393a317a87d14;hb=a7cc649a58a3d3a347817e8c015b37eec908a0e5;hp=0a191b44566a6db5fc2e03ee874f70cd526fe060;hpb=aaf8baf3662e16e9414de236a39f8801a8c41b01;p=freeside.git diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 0a191b445..f2b8e0c4a 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -340,6 +340,12 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>

+% if ( $captcha_url ) { +
+Enter the word shown above:
+
+% } + @@ -485,4 +491,18 @@ sub max { (sort(@_))[-1] } +my $captcha_url; +my ($export_google) = $part_svc->part_export('acct_google'); +if ( $export_google ) { + my $error = $export_google->auth_error; + if ( $error ) { + if ( $error->{'captcha_url'} ) { + $captcha_url = $error->{'captcha_url'}; + } + else { + $cgi->param('error', $error->{'message'}); + } + } #if $error +} +