fix: 로그인/세션 갱신만 있는 member 수정은 활동 로그 제외

페이지 접속·로그인 시 세션토큰/접속시각 갱신이 '로그인'으로 잔뜩 기록되던 노이즈 제거.
Auditable에 auditSkipUpdateOnlyFields 추가, MemberModel에서 세션/로그인 필드 지정.
(로그인 자체는 '로그인 이력'에서 별도 확인)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
taekyoungc
2026-06-29 19:11:38 +09:00
parent 0a39668478
commit 329fbf1592
2 changed files with 20 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ class MemberModel extends Model
{
use \App\Models\Traits\Auditable;
/** 로그인/세션 갱신만 있는 update는 활동 로그에 남기지 않음(로그인 이력은 별도 기록) */
protected array $auditSkipUpdateOnlyFields = ['mb_latestdate', 'mb_login_fail_count', 'mb_locked_until', 'mb_session_token'];
protected $table = 'member';
protected $primaryKey = 'mb_idx';
protected $returnType = 'object';