Update PasswordExpireService.php
remove useless if statement
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user