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:
@@ -350,7 +350,7 @@ final class UserProfileController extends ControllerBase implements CrudControll
|
||||
}
|
||||
|
||||
$form = new UserProfileForm($this->dic);
|
||||
$form->validate(ActionsInterface::PROFILE_CREATE);
|
||||
$form->validateFor(ActionsInterface::PROFILE_CREATE, null);
|
||||
|
||||
$profileData = $form->getItemData();
|
||||
|
||||
@@ -411,7 +411,7 @@ final class UserProfileController extends ControllerBase implements CrudControll
|
||||
}
|
||||
|
||||
$form = new UserProfileForm($this->dic, $id);
|
||||
$form->validate(ActionsInterface::PROFILE_EDIT);
|
||||
$form->validateFor(ActionsInterface::PROFILE_EDIT, null);
|
||||
|
||||
$profileData = $form->getItemData();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user