mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
chore: Refactor import services
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -28,7 +28,7 @@ namespace SP\Modules\Web\Controllers\User;
|
||||
use Defuse\Crypto\Exception\EnvironmentIsBrokenException;
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
use SP\Core\Application;
|
||||
use SP\DataModel\UserData;
|
||||
use SP\DataModel\User;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Exceptions\ConstraintException;
|
||||
use SP\Domain\Core\Exceptions\QueryException;
|
||||
@@ -73,7 +73,7 @@ abstract class UserSaveBase extends ControllerBase
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
* @param UserData $userData
|
||||
* @param User $userData
|
||||
*
|
||||
* @throws EnvironmentIsBrokenException
|
||||
* @throws Exception
|
||||
@@ -81,7 +81,7 @@ abstract class UserSaveBase extends ControllerBase
|
||||
* @throws QueryException
|
||||
* @throws ServiceException
|
||||
*/
|
||||
final protected function checkChangeUserPass(int $userId, UserData $userData): void
|
||||
final protected function checkChangeUserPass(int $userId, User $userData): void
|
||||
{
|
||||
if ($userData->isChangePass()) {
|
||||
$hash = $this->userPassRecoverService->requestForUserId($userId);
|
||||
|
||||
Reference in New Issue
Block a user