Files
opencode-skill/skills/thai-frontend-dev/AUTO_ADMIN_PASSWORD.md
Kunthawat Greethong 7edf5bc4d0 feat: Import 35+ skills, merge duplicates, add openclaw installer
Major updates:
- Added 35+ new skills from awesome-opencode-skills and antigravity repos
- Merged SEO skills into seo-master
- Merged architecture skills into architecture
- Merged security skills into security-auditor and security-coder
- Merged testing skills into testing-master and testing-patterns
- Merged pentesting skills into pentesting
- Renamed website-creator to thai-frontend-dev
- Replaced skill-creator with github version
- Removed Chutes references (use MiniMax API instead)
- Added install-openclaw-skills.sh for cross-platform installation
- Updated .env.example with MiniMax API credentials
2026-03-26 11:37:39 +07:00

2.6 KiB

🔐 Auto-Generated Admin Password

Date: 2026-03-12
Status: Implemented


🎯 How It Works

The admin password for PDPA consent backend is automatically generated from the project folder name.

Formula:

admin_password = project_folder_name.lower().replace(' ', '')

📋 Examples

Project Folder Admin Password
moreminimore moreminimore
My Website mywebsite
deal-plustech deal-plustech
Thai Podcast thaipodcast

🔑 Why This Approach?

Benefits:

  • No need to ask user - Password auto-generated
  • Each website has unique password - Based on folder name
  • Easy to remember - Same as folder name
  • Secure enough - Different for each project
  • No password management - No central password database needed

Security:

  • Each website has different password
  • Password is not stored in git (in .env which is gitignored)
  • Password is case-insensitive (all lowercase)
  • Spaces removed for simplicity

🚀 Usage

When Creating Website:

python3 create_astro_website.py \
  --name "My Website" \
  --output "./my-website"

Admin Password: mywebsite

When Logging In:

  1. Go to: https://your-website.com/admin
  2. Username: admin
  3. Password: [folder-name] (same as project folder)

Example:

  • Folder: moreminimore
  • Password: moreminimore

📁 Where Password is Stored

Location: {project-folder}/.env

# .env file (gitignored)
ADMIN_PASSWORD=mywebsite

Important:

  • .env is gitignored (never committed)
  • Each project has its own password
  • Password stored locally only

🔒 For Advanced Users

If you want to customize the password:

Option 1: Edit .env After Creation

cd ./my-website
nano .env
# Change: ADMIN_PASSWORD=mywebsite
# To: ADMIN_PASSWORD=your-custom-password

Edit create_astro_website.py line ~261:

# Default: auto-generate from folder name
args.admin_password = Path(args.output).name.replace(' ', '').lower()

# Custom: set your own
args.admin_password = "your-custom-password"

🎯 Summary

  • No need to specify password - Auto-generated
  • Password = folder name (lowercase, no spaces)
  • Each website unique - Different folder = different password
  • Easy to remember - Just use folder name
  • Secure - Not in git, different per project

That's it! Simple and secure! 🎉