Skip to content

Commit

Permalink
fix: remove unused clearSetPasswordHash
Browse files Browse the repository at this point in the history
  • Loading branch information
avardugin committed Aug 20, 2024
1 parent 82ab4b0 commit 513b6b4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/Repositories/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,4 @@ public function __construct()
{
$this->setModel(User::class);
}

public function clearSetPasswordHash(): int
{
return $this
->getQuery()
->where('set_password_hash_created_at', '<', Carbon::now()->subHours(config('defaults.password_hash_lifetime')))
->update([
'set_password_hash' => null,
'set_password_hash_created_at' => null,
]);
}
}

0 comments on commit 513b6b4

Please sign in to comment.