feat: forgot password

config: msg
This commit is contained in:
2026-07-30 22:42:38 +07:00
parent 781a0f8aa7
commit 36eec0a664
11 changed files with 284 additions and 4 deletions
+4
View File
@@ -198,10 +198,14 @@ class AdminService implements AdminServiceInterface
public function resetAllCards(): void
{
$activeUserCount = User::where('status', config('constants.STATUS_ACTIVE'))->count();
User::where('status', config('constants.STATUS_ACTIVE'))->update([
'card' => 0,
'flag_send' => config('constants.FLAG_SEND_DISABLED'),
]);
\Illuminate\Support\Facades\Log::info("Thực hiện reset thẻ hàng tháng thành công cho {$activeUserCount} tài khoản active.");
}
public function updateAddCard(int $id, array $data): void