Automatically add a token to any autogenerated form.
Refactor previous commits to take advantage of that.
This commit is contained in:
parent
5e4db3adb4
commit
02e9354c15
7 changed files with 2 additions and 30 deletions
|
|
@ -633,7 +633,6 @@ sub www_editUser {
|
|||
my $username = ($u->isVisitor && $uid ne "1") ? '' : $u->username;
|
||||
$tabform->hidden({name=>"op",value=>"editUserSave"});
|
||||
$tabform->hidden({name=>"uid",value=>$uid});
|
||||
$tabform->csrfToken();
|
||||
$tabform->getTab("account")->raw('<tr><td width="170"> </td><td> </td></tr>');
|
||||
$tabform->getTab("account")->readOnly(value=>$uid,label=>$i18n->get(378));
|
||||
$tabform->getTab("account")->readOnly(value=>$u->karma,label=>$i18n->get(537)) if ($session->setting->get("useKarma"));
|
||||
|
|
@ -872,7 +871,6 @@ sub www_editUserKarma {
|
|||
-name => "uid",
|
||||
-value => $session->form->process("uid"),
|
||||
);
|
||||
$f->csrfToken();
|
||||
$f->integer(
|
||||
-name => "amount",
|
||||
-label => $i18n->get(556),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue