Lines Matching refs:auth
185 global $auth;
204 $userdata['user'] = $auth->cleanUser((string)$userdata['user']);
216 $userdata['grps'] = array_map([$auth, 'cleanGroup'], (array)$userdata['grps']);
224 * Uses the global $auth object for user management
233 /** @var \auth_plugin_oauth $auth */
234 global $auth;
237 $localUser = $auth->getUserByEmail($userdata['mail']);
239 $localUserInfo = $auth->getUserData($localUser);
244 if (!in_array($auth->cleanGroup($servicename), $localUserInfo['grps'])) {
256 $auth->getConf('overwrite-groups')
263 $auth->modifyUser($localUser, $userdata);
265 } elseif (actionOK('register') || $auth->getConf('register-on-auth')) {
266 if (!$auth->registerOAuthUser($userdata, $servicename)) {