From 05e8472c51d1806a2db56a86f80089028a031c7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 15 Jan 2014 15:57:42 +0100 Subject: [PATCH] Log errors that occur during 3rd party login --- .../install/files/lib/action/FacebookAuthAction.class.php | 4 ++++ wcfsetup/install/files/lib/action/GithubAuthAction.class.php | 4 ++++ wcfsetup/install/files/lib/action/GoogleAuthAction.class.php | 4 ++++ wcfsetup/install/files/lib/action/TwitterAuthAction.class.php | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/wcfsetup/install/files/lib/action/FacebookAuthAction.class.php b/wcfsetup/install/files/lib/action/FacebookAuthAction.class.php index c8ef2fd139..e0ebaac822 100644 --- a/wcfsetup/install/files/lib/action/FacebookAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/FacebookAuthAction.class.php @@ -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(); } diff --git a/wcfsetup/install/files/lib/action/GithubAuthAction.class.php b/wcfsetup/install/files/lib/action/GithubAuthAction.class.php index 6aa056e427..62bcaecf8a 100644 --- a/wcfsetup/install/files/lib/action/GithubAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/GithubAuthAction.class.php @@ -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(); } diff --git a/wcfsetup/install/files/lib/action/GoogleAuthAction.class.php b/wcfsetup/install/files/lib/action/GoogleAuthAction.class.php index 5dd813f88b..9b5370c1bd 100644 --- a/wcfsetup/install/files/lib/action/GoogleAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/GoogleAuthAction.class.php @@ -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(); } diff --git a/wcfsetup/install/files/lib/action/TwitterAuthAction.class.php b/wcfsetup/install/files/lib/action/TwitterAuthAction.class.php index 253737532a..48b15db47a 100644 --- a/wcfsetup/install/files/lib/action/TwitterAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/TwitterAuthAction.class.php @@ -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(); } -- 2.20.1