slight change on last commit - server discovery for legacy openid
This commit is contained in:
parent
c55cb45855
commit
cd073f94f8
|
@ -111,7 +111,9 @@ function settings_post(&$a) {
|
||||||
|
|
||||||
$openidserver = $a->user['openidserver'];
|
$openidserver = $a->user['openidserver'];
|
||||||
|
|
||||||
if($openid != $a->user['openid']) {
|
// If openid has changed or if there's an openid but no openidserver, try and discover it.
|
||||||
|
|
||||||
|
if($openid != $a->user['openid'] || (strlen($openid) && (! strlen($openidserver)))) {
|
||||||
logger('updating openidserver');
|
logger('updating openidserver');
|
||||||
require_once('library/openid.php');
|
require_once('library/openid.php');
|
||||||
$open_id_obj = new LightOpenID;
|
$open_id_obj = new LightOpenID;
|
||||||
|
|
Loading…
Reference in a new issue