feat: Auto-generate admin password from project folder name
Changes:
- Removed --admin-password argument (no longer needed)
- Password auto-generated: folder_name.lower().replace(' ', '')
- Each website has unique password
- No need to ask user for password
Examples:
- moreminimore → password: moreminimore
- My Website → password: mywebsite
- deal-plustech → password: deal-plustech
Benefits:
- Simple (same as folder name)
- Secure (different per project)
- No password management needed
- Not stored in git (in .env)
This commit is contained in:
@@ -250,8 +250,6 @@ def main():
|
||||
help='Umami Website ID')
|
||||
parser.add_argument('--umami-domain', default='analytics.example.com',
|
||||
help='Umami domain')
|
||||
parser.add_argument('--admin-password', default='changeme',
|
||||
help='Admin password for consent logs')
|
||||
parser.add_argument('--output', '-o', default='.',
|
||||
help='Output directory')
|
||||
parser.add_argument('--no-interactive', action='store_true',
|
||||
@@ -259,6 +257,9 @@ def main():
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
# Auto-generate admin password from project folder name
|
||||
args.admin_password = Path(args.output).name.replace(' ', '').lower()
|
||||
|
||||
# Load unified credentials
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv(os.path.join(os.path.dirname(__file__), '../../../.env'))
|
||||
|
||||
Reference in New Issue
Block a user