aboutsummaryrefslogtreecommitdiffstats
path: root/mod/openid.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-23 20:56:20 -0800
committerFriendika <info@friendika.com>2010-11-23 20:56:20 -0800
commitdd52aec243cd16f7ff05026b91f984788cafad56 (patch)
tree8823efcfb060082503baac004d7f4d0133e7c7c8 /mod/openid.php
parentf9f08b435589ea10dca2db6891ae885a66e831e4 (diff)
downloadvolse-hubzilla-dd52aec243cd16f7ff05026b91f984788cafad56.tar.gz
volse-hubzilla-dd52aec243cd16f7ff05026b91f984788cafad56.tar.bz2
volse-hubzilla-dd52aec243cd16f7ff05026b91f984788cafad56.zip
use optional openid photo for registration - if supplied
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);