[pLog-svn] r4420 - plugins/branches/lifetype-1.1/openid
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Sat Dec 23 19:54:49 GMT 2006
Author: pwestbro
Date: 2006-12-23 19:54:48 +0000 (Sat, 23 Dec 2006)
New Revision: 4420
Modified:
plugins/branches/lifetype-1.1/openid/OpenID.php
Log:
Allowed a user's full name and email address to be returned after authenticating
Modified: plugins/branches/lifetype-1.1/openid/OpenID.php
===================================================================
--- plugins/branches/lifetype-1.1/openid/OpenID.php 2006-12-23 19:34:04 UTC (rev 4419)
+++ plugins/branches/lifetype-1.1/openid/OpenID.php 2006-12-23 19:54:48 UTC (rev 4420)
@@ -356,6 +356,7 @@
if (!defined( "PLOG_CLASS_PATH" )) {
define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
}
+ include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php");
include_once( PLOG_CLASS_PATH."class/dao/users.class.php");
$users = new Users();
@@ -365,7 +366,15 @@
if ($auth)
{
$_SESSION['auth_username'] = $username;
- $user_authenticated = true;
+ $user_authenticated = true;
+
+ // get the user's information
+ $userInfo = $users->getUserInfoFromUsername( $username );
+ if($userInfo)
+ {
+ $sreg['email'] = $userInfo->getEmail();
+ $sreg['fullname'] = $userInfo->getFullName();
+ }
}
}
More information about the pLog-svn
mailing list