Log errors that occur during 3rd party login
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 15 Jan 2014 14:57:42 +0000 (15:57 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 15 Jan 2014 14:57:42 +0000 (15:57 +0100)
wcfsetup/install/files/lib/action/FacebookAuthAction.class.php
wcfsetup/install/files/lib/action/GithubAuthAction.class.php
wcfsetup/install/files/lib/action/GoogleAuthAction.class.php
wcfsetup/install/files/lib/action/TwitterAuthAction.class.php

index c8ef2fd1390ad97816895ce5d830b40785bebefd..e0ebaac822d6db310d9643d0ffe231272682340f 100644 (file)
@@ -47,6 +47,8 @@ class FacebookAuthAction extends AbstractAction {
                                $content = $reply['body'];
                        }
                        catch (SystemException $e) {
+                               // force logging
+                               $e->getExceptionID();
                                throw new IllegalLinkException();
                        }
                        
@@ -65,6 +67,8 @@ class FacebookAuthAction extends AbstractAction {
                                $content = $reply['body'];
                        }
                        catch (SystemException $e) {
+                               // force logging
+                               $e->getExceptionID();
                                throw new IllegalLinkException();
                        }
                        
index 6aa056e4277136999fb0d62491058fa41018b8c7..62bcaecf8a9a63049fb042110ec9a872e6c14650 100644 (file)
@@ -50,6 +50,8 @@ class GithubAuthAction extends AbstractAction {
                                $content = $reply['body'];
                        }
                        catch (SystemException $e) {
+                               // force logging
+                               $e->getExceptionID();
                                throw new IllegalLinkException();
                        }
                        
@@ -97,6 +99,8 @@ class GithubAuthAction extends AbstractAction {
                                        $userData = JSON::decode(StringUtil::trim($reply['body']));
                                }
                                catch (SystemException $e) {
+                                       // force logging
+                                       $e->getExceptionID();
                                        throw new IllegalLinkException();
                                }
                                
index 5dd813f88b4081523087ddc2a86062d1f8d85dfe..9b5370c1bd3948698f20893ef549b74ba3adaf3f 100644 (file)
@@ -55,6 +55,8 @@ class GoogleAuthAction extends AbstractAction {
                                $content = $reply['body'];
                        }
                        catch (SystemException $e) {
+                               // force logging
+                               $e->getExceptionID();
                                throw new IllegalLinkException();
                        }
                        
@@ -74,6 +76,8 @@ class GoogleAuthAction extends AbstractAction {
                                $content = $reply['body'];
                        }
                        catch (SystemException $e) {
+                               // force logging
+                               $e->getExceptionID();
                                throw new IllegalLinkException();
                        }
                        
index 253737532aefac481e16ebd2e1559c556102b81e..48b15db47ab93588cf1a82e0720802a8d817dc47 100644 (file)
@@ -68,6 +68,8 @@ class TwitterAuthAction extends AbstractAction {
                                $content = $reply['body'];
                        }
                        catch (SystemException $e) {
+                               // force logging
+                               $e->getExceptionID();
                                throw new IllegalLinkException();
                        }
                        
@@ -167,6 +169,8 @@ class TwitterAuthAction extends AbstractAction {
                        $content = $reply['body'];
                }
                catch (SystemException $e) {
+                       // force logging
+                       $e->getExceptionID();
                        throw new IllegalLinkException();
                }