aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-19 15:10:14 -0700
committerfriendica <info@friendica.com>2012-03-19 15:10:14 -0700
commitb8f63124086e57e6930a53b322daf86a9c431763 (patch)
tree3da31b7e95859cd357f417acee0516d4227b44a6 /mod
parent9e133d6412945f84f858d4bfde26c69f9e1afbfd (diff)
downloadvolse-hubzilla-b8f63124086e57e6930a53b322daf86a9c431763.tar.gz
volse-hubzilla-b8f63124086e57e6930a53b322daf86a9c431763.tar.bz2
volse-hubzilla-b8f63124086e57e6930a53b322daf86a9c431763.zip
cleanup after openid refactoring
Diffstat (limited to 'mod')
-rwxr-xr-xmod/openid.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/openid.php b/mod/openid.php
index 594a90937..e2cea7d85 100755
--- a/mod/openid.php
+++ b/mod/openid.php
@@ -13,6 +13,7 @@ function openid_content(&$a) {
logger('mod_openid ' . print_r($_REQUEST,true), LOGGER_DATA);
if((x($_GET,'openid_mode')) && (x($_SESSION,'openid'))) {
+
$openid = new LightOpenID;
if($openid->validate()) {
@@ -31,6 +32,9 @@ function openid_content(&$a) {
);
if($r && count($r)) {
+
+ // successful OpenID login
+
unset($_SESSION['openid']);
require_once('include/security.php');
@@ -42,7 +46,8 @@ function openid_content(&$a) {
goaway(z_root());
}
- // new registration?
+ // Successful OpenID login - but we can't match it to an existing account.
+ // New registration?
if($a->config['register_policy'] == REGISTER_CLOSED) {
notice( t('Account not found and OpenID registration is not permitted on this site.') . EOL);