diff options
| author | Justin J. Novack <jnovack@gmail.com> | 2012-09-18 13:53:14 -0400 |
|---|---|---|
| committer | Justin J. Novack <jnovack@gmail.com> | 2012-09-18 13:53:14 -0400 |
| commit | b81d2ab65f8fafce3b818eeb96c1cdcecd3e675f (patch) | |
| tree | 027e0dd17685c0c8a658840c671718a7011ef64d /www/login.php | |
| parent | 8d2375dc72b857857cd164f452e103b86ed110cd (diff) | |
| download | phorkie-b81d2ab65f8fafce3b818eeb96c1cdcecd3e675f.tar.gz phorkie-b81d2ab65f8fafce3b818eeb96c1cdcecd3e675f.zip | |
CLEAN: Removed openid debugging information
Diffstat (limited to 'www/login.php')
| -rw-r--r-- | www/login.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/www/login.php b/www/login.php index 9c1b136..a97246f 100644 --- a/www/login.php +++ b/www/login.php @@ -34,11 +34,7 @@ $returnTo = Tools::fullUrl('/login'); try { $o = new \OpenID_RelyingParty($returnTo, $realm, $openid_url); } catch (OpenID_Exception $e) { - $contents = "<div class='openid_results'>\n"; - $contents .= "<pre>" . $e->getMessage() . "</pre>\n"; - $contents .= "</div class='openid_results'>"; - include_once 'openid/wrapper.php'; - exit; + throw new Exception($e->getMessage()); } if (!empty($_POST['disable_associations']) || !empty($_SESSION['disable_associations'])) { @@ -55,11 +51,7 @@ if (isset($_POST['openid_url'])) { try { $authRequest = $o->prepare(); } catch (OpenID_Exception $e) { - $contents = "<div class='openid_results'>\n"; - $contents .= "<pre>" . $e->getMessage() . "</pre>\n"; - $contents .= "</div class='openid_results'>"; - include_once 'openid/wrapper.php'; - exit; + throw new Exception($e->getMessage()); } // SREG |
