Lines Matching +full:update +full:- +full:user +full:- +full:login -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
10 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
24 $controller->register_hook('AUTH_LOGIN_CHECK', 'BEFORE', $this, 'handleAuthLoginCheck');
25 $controller->register_hook('FORM_LOGIN_OUTPUT', 'BEFORE', $this, 'handleFormLoginOutput');
29 * Adds the selected domain as user postfix when attempting a login
42 if ($INPUT->str('dom')) {
43 $usr = $auth->cleanUser($event->data['user']);
44 $dom = $auth->getUserDomain($usr);
46 $usr = "$usr@" . $INPUT->str('dom');
48 $INPUT->post->set('u', $usr);
49 $event->data['user'] = $usr;
54 * Shows a domain selection in the login form when more than one domain is configured
65 $domains = $auth->getConfiguredDomains();
69 $form =& $event->data;
72 $pos = $form->findPositionByAttribute('name', 'u');
76 if ($INPUT->has('u')) {
77 $usr = $auth->cleanUser($INPUT->str('u'));
78 $dom = $auth->getUserDomain($usr);
80 // update user field value
82 $usr = $auth->getUserName($usr);
83 $element = $form->getElementAt($pos);
84 $element->val($usr);
89 $element = $form->addDropdown('dom', $domains, $this->getLang('domain'), $pos + 1);
90 $element->addClass('block');