Security: Remove mock features and demo mode bypass

- Delete LimitOrders.tsx (no blockchain pallet)
- Delete P2PMarket.tsx (no blockchain pallet)
- Remove P2P Market from AppLayout navigation
- Remove LimitOrders from TokenSwap component
- Delete FOUNDER_ACCOUNT hardcoded credentials
- Delete DEMO_MODE_ENABLED bypass logic
- Remove localStorage demo_user persistence
- All authentication now goes through Supabase only

SECURITY FIX: Closes critical authentication bypass vulnerability
This commit is contained in:
Claude
2025-11-16 21:20:40 +00:00
parent ca83a59dbc
commit ff75515fab
5 changed files with 1 additions and 1201 deletions
-8
View File
@@ -13,7 +13,6 @@ import { ASSET_IDS, formatBalance, parseAmount } from '@pezkuwi/lib/wallet';
import { useToast } from '@/hooks/use-toast';
import { KurdistanSun } from './KurdistanSun';
import { PriceChart } from './trading/PriceChart';
import { LimitOrders } from './trading/LimitOrders';
// Available tokens for swap
const AVAILABLE_TOKENS = [
@@ -1107,13 +1106,6 @@ const TokenSwap = () => {
</div>
)}
</Card>
{/* Limit Orders Section */}
<LimitOrders
fromToken={fromToken}
toToken={toToken}
currentPrice={exchangeRate}
/>
</div>
<div>