- Add ALTCHA service with challenge generation and verification - Update auth and admin handlers to use ALTCHA tokens - Replace Turnstile widget with ALTCHA widget in Flutter app - Update admin frontend to use ALTCHA token - Add ALTCHA challenge endpoints for both auth and admin - Maintain development bypass for testing - Remove Turnstile dependencies from authentication flow
24 lines
609 B
Bash
24 lines
609 B
Bash
#!/bin/bash
|
|
|
|
# Test admin login with patrick@mp.ls (primary admin)
|
|
echo "Testing admin login with patrick@mp.ls..."
|
|
|
|
curl -X POST http://localhost:8080/api/v1/admin/login \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"email": "patrick@mp.ls",
|
|
"password": "password123",
|
|
"turnstile_token": "BYPASS_DEV_MODE"
|
|
}' | jq .
|
|
|
|
echo ""
|
|
echo "Testing admin login with admin@mp.ls..."
|
|
|
|
curl -X POST http://localhost:8080/api/v1/admin/login \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"email": "admin@mp.ls",
|
|
"password": "password123",
|
|
"turnstile_token": "BYPASS_DEV_MODE"
|
|
}' | jq .
|