Lines Matching refs:uinfo
176 $uinfo = $service->getUser();
177 $ok = $this->processUser($uinfo, $hlp, $servicename);
181 $this->setUserSession($uinfo, $servicename);
182 $this->setUserCookie($uinfo['user'], $sticky, $servicename);
198 protected function processUser(&$uinfo, $hlp, $servicename) { argument
199 $uinfo['user'] = $this->cleanUser((string) $uinfo['user']);
200 if(!$uinfo['name']) $uinfo['name'] = $uinfo['user'];
202 if(!$uinfo['user'] || !$uinfo['mail']) {
208 $user = $this->getUserByEmail($uinfo['mail']);
216 $uinfo['user'] = $user;
217 $uinfo['name'] = $sinfo['name'];
218 if ($this->haveEveGroups($uinfo['grps'])) { //Update groups
231 $uinfo['grps'] = array_unique(array_merge((array) $uinfo['grps'], $sinfo['grps']));
233 $uinfo['grps'] = $sinfo['grps'];
236 $this->modifyUser($user, array('grps' => $uinfo['grps']));
238 if (!$hlp->checkGroups($uinfo['grps'])) {
245 if (!$hlp->checkGroups($uinfo['grps'])) {
250 $ok = $this->addUser($uinfo, $servicename);
286 * @param array $uinfo user info received from the oAuth service
291 protected function addUser(&$uinfo, $servicename) { argument
293 $user = $uinfo['user'];
303 $uinfo['user'] = $user;
307 $uinfo['grps'] = array_merge((array) $uinfo['grps'], $groups_on_creation);
311 array($user, auth_pwgen($user), $uinfo['name'], $uinfo['mail'], $uinfo['grps'],)
319 $subscription->send_register($user, $uinfo['name'], $uinfo['mail']);
338 foreach($this->users as $user => $uinfo) {
339 if(strtolower($uinfo['mail']) == $mail) return $user;