From 513b6b4c7b8f987c0b69c73f83468cfb7e72314d Mon Sep 17 00:00:00 2001 From: Alexey Vardugin Date: Tue, 20 Aug 2024 12:56:51 +0600 Subject: [PATCH] fix: remove unused clearSetPasswordHash --- app/Repositories/UserRepository.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/Repositories/UserRepository.php b/app/Repositories/UserRepository.php index c7ddfbf..4c38481 100755 --- a/app/Repositories/UserRepository.php +++ b/app/Repositories/UserRepository.php @@ -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, - ]); - } }