mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
refactor: [WIP] Improve form building.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -433,7 +433,7 @@ final class UserController extends ControllerBase implements CrudControllerInter
|
||||
}
|
||||
|
||||
$form = new UserForm($this->dic);
|
||||
$form->validate(Acl::USER_CREATE);
|
||||
$form->validateFor(Acl::USER_CREATE, null);
|
||||
|
||||
$itemData = $form->getItemData();
|
||||
|
||||
@@ -523,7 +523,7 @@ final class UserController extends ControllerBase implements CrudControllerInter
|
||||
}
|
||||
|
||||
$form = new UserForm($this->dic, $id);
|
||||
$form->validate(ActionsInterface::USER_EDIT);
|
||||
$form->validateFor(ActionsInterface::USER_EDIT, null);
|
||||
|
||||
$itemData = $form->getItemData();
|
||||
|
||||
@@ -587,7 +587,7 @@ final class UserController extends ControllerBase implements CrudControllerInter
|
||||
}
|
||||
|
||||
$form = new UserForm($this->dic, $id);
|
||||
$form->validate(ActionsInterface::USER_EDIT_PASS);
|
||||
$form->validateFor(ActionsInterface::USER_EDIT_PASS, null);
|
||||
|
||||
$itemData = $form->getItemData();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user