From: Aymeric Augustin Date: Fri, 31 Oct 2008 22:32:29 +0000 (+0100) Subject: Add the possibility for globally whitelisted websites X-Git-Tag: xorg/0.10.0~48 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=19f4d90884421ad73d80f89664b67355dc1c166c;p=platal.git Add the possibility for globally whitelisted websites (TODO admin interface to handle them) --- 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;