Files
jongryangje/writable/database/member_session_token_add.sql
taekyoungc 8e767ff234 feat(security): 중복 로그인 방지 (나중 로그인 우선)
- 로그인 시 세션 토큰 발급→회원 행(mb_session_token) 저장
- SessionGuardFilter(전역 before)로 매 요청 토큰 대조, 다르면 세션 무효화 후 로그인 이동
- DB 공유로 로컬·운영 등 서버 간에도 동작. 기존 로그인 세션은 재로그인 전까지 유지

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 19:02:52 +09:00

3 lines
184 B
SQL

-- 중복 로그인 방지: 회원별 현재 세션 토큰(나중 로그인 우선)
ALTER TABLE member ADD COLUMN mb_session_token VARCHAR(64) NULL DEFAULT NULL AFTER mb_locked_until;