# Admin Password Reset Guide ## How to Reset Admin Password If you've changed your admin password and forgotten it, you can reset it using one of these methods: ### Method 1: Force Reset on Deployment (Recommended) 1. Edit the Helm values file: `~/OneDrive/Desktop/gitea/my-apps/charts/brand-master-chart/values.yaml` 2. Set the following environment variables: ```yaml ADMIN_PASSWORD: "your-new-password" FORCE_ADMIN_PASSWORD_RESET: "true" ``` 3. Deploy the changes: ```bash cd ~/OneDrive/Desktop/gitea/my-apps/charts helm upgrade brand-master ./brand-master-chart -n my-apps ``` 4. Wait for the backend pod to restart 5. **Important**: After logging in successfully, change `FORCE_ADMIN_PASSWORD_RESET` back to `"false"` and redeploy to prevent password reset on every startup ### Method 2: Use Password Reset Flow (If Email is Configured) 1. Go to the login page: https://brand-master.dvirlabs.com/login 2. Click "Forgot Password" 3. Enter your admin email address 4. Check your email for the PIN code 5. Enter the PIN and your new password 6. Login with the new password ### Method 3: Change Password from Profile (If Logged In) 1. Login to the admin account 2. Go to Profile page 3. Scroll to "Change Password" section 4. Enter old password and new password 5. Submit ## Current Admin Credentials Check your deployment values file or pod logs for current credentials: ```bash kubectl logs -n my-apps deployment/brand-master-backend | grep -A 3 "Admin" ``` ## Notes - The `FORCE_ADMIN_PASSWORD_RESET` flag is set to `"false"` by default for security - Only set it to `"true"` when you need to reset the password - Always change it back to `"false"` after resetting to prevent security issues