Lines Matching +full:delete +full:- +full:user -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

10  * DokuWiki User Profile Interface
17 * Display the User Profile Form Panel
31 'user' => $_SERVER['REMOTE_USER'],
32 'name' => $INPUT->post->str('fullname', $INFO['userinfo']['name'], true),
33 'mail' => $INPUT->post->str('email', $INFO['userinfo']['mail'], true),
40 echo $this->updateProfileForm($userinfo)->toHTML('UpdateProfile');
41 echo $this->tokenForm($userinfo['user'])->toHTML();
42 if ($auth->canDo('delUser') && actionOK('profile_delete')) {
43 echo $this->deleteProfileForm()->toHTML('ProfileDelete');
61 $form->addHTML("<br>\n");
63 $input = $form->addPasswordInput('oldpass', $lang['oldpass'])->attrs($attr)
64 ->addClass('edit');
65 $input->getLabel()->attr('class', 'block');
66 $form->addHTML("<br>\n");
81 $form->addTagOpen('div')->addClass('no');
82 $form->addFieldsetOpen($lang['profile']);
83 $form->setHiddenField('do', 'profile');
84 $form->setHiddenField('save', '1');
87 $input = $form->addTextInput('login', $lang['user'])
88 ->attrs($attr)
89 ->addClass('edit')
90 ->val($userinfo['user']);
91 $input->getLabel()->attr('class', 'block');
92 $form->addHTML("<br>\n");
95 if (!$auth->canDo('modName')) $attr['disabled'] = 'disabled';
96 $input = $form->addTextInput('fullname', $lang['fullname'])
97 ->attrs($attr)
98 ->addClass('edit')
99 ->val($userinfo['name']);
100 $input->getLabel()->attr('class', 'block');
101 $form->addHTML("<br>\n");
104 if (!$auth->canDo('modMail')) $attr['disabled'] = 'disabled';
105 $input = $form->addTextInput('email', $lang['email'])
106 ->attrs($attr)
107 ->addClass('edit')
108 ->val($userinfo['mail']);
109 $input->getLabel()->attr('class', 'block');
110 $form->addHTML("<br>\n");
112 if ($auth->canDo('modPass')) {
114 $input = $form->addPasswordInput('newpass', $lang['newpass'])->attrs($attr)->addClass('edit');
115 $input->getLabel()->attr('class', 'block');
116 $form->addHTML("<br>\n");
118 $input = $form->addPasswordInput('passchk', $lang['passchk'])->attrs($attr)->addClass('edit');
119 $input->getLabel()->attr('class', 'block');
120 $form->addHTML("<br>\n");
123 $this->addPasswordConfirmation($form);
125 $form->addButton('', $lang['btn_save'])->attr('type', 'submit');
126 $form->addButton('', $lang['btn_reset'])->attr('type', 'reset');
128 $form->addFieldsetClose();
129 $form->addTagClose('div');
135 * Create the profile delete form
144 $form->addTagOpen('div')->addClass('no');
145 $form->addFieldsetOpen($lang['profdeleteuser']);
146 $form->setHiddenField('do', 'profile_delete');
147 $form->setHiddenField('delete', '1');
149 $form->addCheckbox('confirm_delete', $lang['profconfdelete'])
150 ->attrs(['required' => 'required'])
151 ->id('dw__confirmdelete')
152 ->val('1');
154 $this->addPasswordConfirmation($form);
156 $form->addButton('', $lang['btn_deleteuser'])->attr('type', 'submit');
157 $form->addFieldsetClose();
158 $form->addTagClose('div');
165 * @param string $user
168 protected function tokenForm($user)
172 $token = JWT::fromUser($user);
175 $form->setHiddenField('do', 'authtoken');
176 $form->setHiddenField('id', 'ID');
177 $form->addFieldsetOpen($lang['proftokenlegend']);
178 $form->addHTML('<p>' . $lang['proftokeninfo'] . '</p>');
179 $form->addHTML('<p><code style="display: block; word-break: break-word">' . $token->getToken() . '</code></p>');
180 $form->addButton('regen', $lang['proftokengenerate']);
181 $form->addFieldsetClose();