From 19f4d90884421ad73d80f89664b67355dc1c166c Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 31 Oct 2008 23:32:29 +0100 Subject: [PATCH] Add the possibility for globally whitelisted websites (TODO admin interface to handle them) --- modules/openid/openid.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openid/openid.inc.php b/modules/openid/openid.inc.php index 5203c44..6a749ab 100644 --- a/modules/openid/openid.inc.php +++ b/modules/openid/openid.inc.php @@ -113,7 +113,7 @@ function is_trusted_site($user, $url) { $res = XDB::query('SELECT COUNT(*) FROM openid_trusted - WHERE user_id = {?} + WHERE (user_id = {?} OR user_id IS NULL) AND url = {?}', $user->id(), $url); return $res->fetchOneCell() > 0; -- 2.1.4