mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-09 18:06:54 +01:00
refactor: [WIP] Improve form building.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -56,8 +56,7 @@ final class SaveEditController extends AuthTokenSaveBase
|
||||
);
|
||||
}
|
||||
|
||||
$this->form->setItemId($id);
|
||||
$this->form->validate(ActionsInterface::AUTHTOKEN_EDIT);
|
||||
$this->form->validateFor(ActionsInterface::AUTHTOKEN_EDIT, $id);
|
||||
|
||||
if ($this->form->isRefresh()) {
|
||||
$this->authTokenService->refreshAndUpdate($this->form->getItemData());
|
||||
|
||||
Reference in New Issue
Block a user