feat(security): 중복 로그인 방지 (나중 로그인 우선)
- 로그인 시 세션 토큰 발급→회원 행(mb_session_token) 저장 - SessionGuardFilter(전역 before)로 매 요청 토큰 대조, 다르면 세션 무효화 후 로그인 이동 - DB 공유로 로컬·운영 등 서버 간에도 동작. 기존 로그인 세션은 재로그인 전까지 유지 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2
writable/database/member_session_token_add.sql
Normal file
2
writable/database/member_session_token_add.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- 중복 로그인 방지: 회원별 현재 세션 토큰(나중 로그인 우선)
|
||||
ALTER TABLE member ADD COLUMN mb_session_token VARCHAR(64) NULL DEFAULT NULL AFTER mb_locked_until;
|
||||
Reference in New Issue
Block a user