Update PasswordExpireService.php

remove useless if statement
This commit is contained in:
niciz
2023-12-15 13:54:27 +01:00
committed by GitHub
parent 3d8c4c747d
commit 2ca349964f

View File

@ -25,11 +25,9 @@ class PasswordExpireService implements ServiceInterface
public function run()
{
if ($this->model->password_changed_at !== null) {
return $this->model->updateAttributes([
$this->model->updateAttributes([
'password_changed_at' => null,
]);
}
return true;
}
}