use optional openid photo for registration - if supplied
This commit is contained in:
parent
f9f08b4355
commit
dd52aec243
4 changed files with 28 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue