aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-23 14:54:34 -0800
committerFriendika <info@friendika.com>2010-12-23 14:54:34 -0800
commitcd073f94f81708d39de6590551e2bed2432c70d0 (patch)
tree08f2c332df77833dff24f5edca471ae0586ee580
parentc55cb45855ede35e593f6a1ed5e5878144cf0ad0 (diff)
downloadvolse-hubzilla-cd073f94f81708d39de6590551e2bed2432c70d0.tar.gz
volse-hubzilla-cd073f94f81708d39de6590551e2bed2432c70d0.tar.bz2
volse-hubzilla-cd073f94f81708d39de6590551e2bed2432c70d0.zip
slight change on last commit - server discovery for legacy openid
-rw-r--r--mod/settings.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 6eaa17ad0..b10f9e3fc 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -111,7 +111,9 @@ function settings_post(&$a) {
$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');
require_once('library/openid.php');
$open_id_obj = new LightOpenID;