diff options
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php index 2b7c385fd..425715014 100644 --- a/include/auth.php +++ b/include/auth.php @@ -230,3 +230,13 @@ else { authenticate_success($record, true, true); } } + + +function match_openid($authid) { + $r = q("select * from pconfig where cat = 'system' and k = 'openid' and v = '%s' limit 1", + dbesc($authid) + ); + if($r) + return $r[0]['uid']; + return false; +} |