Add multi-layer god mode validation

Otherkamo-internal
관련 상품
2025년 10월 24일 오후 9:05 UTC
이름 *
snadjafinia
뚱 베어
b3e4c55

Security enhancements to prevent localStorage manipulation: 1. useUserInfo hook: - Add isGodModeActive() method with dual validation - Check 1: User has god permission (from session) - Check 2: God mode enabled in localStorage - Returns false if either check fails 2. NavTop component: - Use secure isGodModeActive() from hook - Auto-clear localStorage if permission lost - Warning logged when permission mismatch detected Security flow: - Even if user manually sets localStorage.godModeActive=true - isGodModeActive() will return false if getIsGod()=false - Prevents bypassing permission check via browser devtools Protection against: - localStorage manipulation - Permission revocation during active session - Cookie tampering (session verification required) All components using god mode should call isGodModeActive() instead of reading localStorage directly.

모든 변경 사항

배송을 보는 것과 같이?

작업 공간의 모든 업데이트 땅은 자동으로. 일주일 후 무료로 시청하십시오.

무료 영원히 시작가격 비교