[英]Assigning Created Joomla User to the Current User
I've created a Joomla plugin for facebook which lets facebook users to login. 我为Facebook创建了一个Joomla插件,该插件可让Facebook用户登录。 Also, I'm creating new user when they first login through faceobok. 另外,当他们第一次通过faceobok登录时,我正在创建新用户。
I want to set the current user object to the created user. 我想将当前用户对象设置为创建的用户。 is it possibile in Joomla? Joomla有可能吗? How? 怎么样?
Thanks 谢谢
You can overwrite the current user: 您可以覆盖当前用户:
$user = & JFactory::getUser();
$user = $newUser;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.