Files
LiveServer-M1/setup.sh
joylessorchid bd195bd735 feat: add admin command to setup.sh
- ./setup.sh admin — create admin user directly in DB
- Hashes password via bcryptjs (already in dependencies)
- Creates both user and better-auth account records
- Shows existing admins, offers to promote existing users
- Validates email, password length (min 8)
- Added to interactive menu and CLI router

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 02:53:18 +03:00

47 KiB