[freeside-commits] freeside/httemplate/edit svc_acct.cgi, 1.70, 1.71

Mark Wells mark at wavetail.420.am
Sat Apr 30 14:20:52 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv27245/httemplate/edit

Modified Files:
	svc_acct.cgi 
Log Message:
better error handling in google export, #12064

Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_acct.cgi,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -w -d -r1.70 -r1.71
--- svc_acct.cgi	16 Mar 2011 01:43:29 -0000	1.70
+++ svc_acct.cgi	30 Apr 2011 21:20:50 -0000	1.71
@@ -494,7 +494,15 @@
 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>



More information about the freeside-commits mailing list