operation snakebite continued. openid now works for local accounts using the rmagic module and after storing your openid in pconfig. This is just an interesting but trivial (in the bigger scheme of things) side effect of snakebite. The snake hasn't even waken up yet.
This commit is contained in:
@@ -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' ");
|
||||
if($r)
|
||||
foreach($r as $rr)
|
||||
if($rr['v'] === $authid)
|
||||
return $rr['uid'];
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user