Lines Matching refs:event
46 * @param Doku_Event $event
49 public function handleAjax(Doku_Event $event, $param) argument
51 if ($event->data !== 'plugin_passpolicy') {
55 $event->stopPropagation();
56 $event->preventDefault();
76 * @param Doku_Event $event event object
79 public function handleForms(Doku_Event $event, $param) argument
81 if (is_a($event->data, \dokuwiki\Form\Form::class)) {
83 $pos = $event->data->findPositionByAttribute('name', 'passchk');
86 $pos = $event->data->findElementByAttribute('name', 'passchk');
93 if (is_a($event->data, \dokuwiki\Form\Form::class)) {
94 $event->data->addHTML($html, ++$pos);
96 $event->data->insertElement(++$pos, $html);
103 * @param Doku_Event $event event object
106 public function handlePasschange(Doku_Event $event, $param) argument
108 if ($event->data['type'] == 'create') {
109 $user = $event->data['params'][0];
110 $pass = $event->data['params'][1];
111 } elseif ($event->data['type'] == 'modify') {
112 $user = $event->data['params'][0];
113 if (!isset($event->data['params'][1]['pass'])) {
116 $pass = $event->data['params'][1]['pass'];
126 $event->preventDefault();
127 $event->stopPropagation();
134 * @param Doku_Event $event event object
138 public function handlePassgen(Doku_Event $event, $param) argument
143 $event->data['password'] = $passpolicy->generatePassword($event->data['foruser']);
144 $event->preventDefault();
152 * @param Doku_Event $event
155 public function handleResendPwd(Doku_Event $event, $param) argument
157 $act = act_clean($event->data);
160 $event->preventDefault();
166 $event->data = 'show';
181 * @param Doku_Event $event
184 public function handleResendPwdUI(Doku_Event $event, $param) argument
186 $act = act_clean($event->data);
188 $event->preventDefault();