From c3864eb25f8fd6c013b08fd4afee4094b51f2671 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 29 Oct 2012 20:58:42 +0100 Subject: [PATCH] Throw exceptions when OpenID login fails --- www/login.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/login.php b/www/login.php index 5782521..fbd337d 100644 --- a/www/login.php +++ b/www/login.php @@ -100,10 +100,12 @@ try { $status = "Status:SUCCESS!"; $status .= " ({$result->getAssertionMethod()})"; } else { + throw new Exception('Error logging in'); $status = "Status:FAIL!"; $status .= " ({$result->getAssertionMethod()})"; } } catch (OpenID_Exception $e) { + throw new Exception('Error logging in'); $status = "Status:EXCEPTION!"; $status .= " ({$e->getMessage()} : {$e->getCode()})"; } -- 2.30.2