diff options
author | Brion Vibber <brion@pobox.com> | 2010-05-20 12:21:29 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-05-25 17:11:46 -0700 |
commit | 9193c110f14e09523791683e7799a45163b881c2 (patch) | |
tree | d5b9462008438aaf1b178870f6987034590761a4 /plugins/OpenID/openid.php | |
parent | d9a89d174ad1cb28669a8f3c76be23f27c182d58 (diff) |
WikiHowProfile plugin; pulls avatar from WikiHow profile pages when registering or adding account with OpenID. (Full name, location, homepage, and bio are also on the profile page but not marked up in a way they can be easily retrieved yet.)
OpenID plugin: Added events at OpenID account creation and update time to allow additional customizations for particular sites.
Diffstat (limited to 'plugins/OpenID/openid.php')
-rw-r--r-- | plugins/OpenID/openid.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/OpenID/openid.php b/plugins/OpenID/openid.php index 4ec336e1c..cdeedbf4d 100644 --- a/plugins/OpenID/openid.php +++ b/plugins/OpenID/openid.php @@ -212,11 +212,14 @@ function _oid_print_instructions() 'OpenID provider.')); } -# update a user from sreg parameters - -function oid_update_user(&$user, &$sreg) +/** + * Update a user from sreg parameters + * @param User $user + * @param array $sreg fields from OpenID sreg response + * @access private + */ +function oid_update_user($user, $sreg) { - $profile = $user->getProfile(); $orig_profile = clone($profile); |