aboutsummaryrefslogtreecommitdiffstats
path: root/mod/openid.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/openid.php')
-rw-r--r--mod/openid.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/openid.php b/mod/openid.php
index 443d839fa..94f08c430 100644
--- a/mod/openid.php
+++ b/mod/openid.php
@@ -25,6 +25,10 @@ function openid_content(&$a) {
$args .= '&username=' . notags(trim($v));
if($k === 'contact/email')
$args .= '&email=' . notags(trim($v));
+ if($k === 'media/image/aspect11')
+ $photosq = bin2hex(trim($v));
+ if($k === 'media/image/default')
+ $photo = bin2hex(trim($v));
}
}
if($nick)
@@ -32,6 +36,11 @@ function openid_content(&$a) {
elseif($first)
$args .= '&nickname=' . $first;
+ if($photosq)
+ $args .= '&photo=' . $photosq;
+ elseif($photo)
+ $args .= '&photo=' . $photo;
+
$args .= '&openid_url=' . notags(trim($_SESSION['openid']));
if($a->config['register_policy'] != REGISTER_CLOSED)
goaway($a->get_baseurl() . '/register' . $args);