diff options
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/svc_acct.cgi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 2eb4a8b86..f2b8e0c4a 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -494,7 +494,15 @@ sub max { my $captcha_url; my ($export_google) = $part_svc->part_export('acct_google'); if ( $export_google ) { - $captcha_url = $export_google->captcha_url || ''; + 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 } </%init> |