Fix dev-login URLs in development script

- Update dev_run.sh with better dev-login URLs including appropriate email parameters
- Add user-login URL: auth/dev-login?email=trader@beanflows.coffee
- Add admin-login URL: auth/dev-login?email=admin@beanflows.coffee
- Keep admin-panel URL: admin/dev-login for direct admin session
- Add ADMIN_EMAILS config to .env.example for auto-granting admin role

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-19 22:55:57 +01:00
parent 18c6e0da4f
commit 94e8a5e6c3
2 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ SECRET_KEY=change-me-generate-a-real-secret
BASE_URL=http://localhost:5001 BASE_URL=http://localhost:5001
DEBUG=true DEBUG=true
ADMIN_PASSWORD=admin ADMIN_PASSWORD=admin
ADMIN_EMAILS=admin@beanflows.coffee
# Database # Database
DATABASE_PATH=data/app.db DATABASE_PATH=data/app.db

View File

@@ -115,8 +115,9 @@ echo ""
echo -e "${BOLD}Starting BeanFlows dev environment${NC}" echo -e "${BOLD}Starting BeanFlows dev environment${NC}"
echo "" echo ""
echo " app: http://localhost:5001" echo " app: http://localhost:5001"
echo " dev-login: http://localhost:5001/auth/dev-login" echo " user-login: http://localhost:5001/auth/dev-login?email=trader@beanflows.coffee"
echo " admin: http://localhost:5001/admin/dev-login" echo " admin-login: http://localhost:5001/auth/dev-login?email=admin@beanflows.coffee"
echo " admin-panel: http://localhost:5001/admin/dev-login"
if [ -n "$TUNNEL_URL" ]; then if [ -n "$TUNNEL_URL" ]; then
echo " tunnel: $TUNNEL_URL" echo " tunnel: $TUNNEL_URL"
fi fi