All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Fix: Product filters now properly send only non-empty values to backend - Fix: Brand/gender/model filters now work correctly - Add: FORCE_ADMIN_PASSWORD_RESET flag for resetting admin password on deployment - Add: ADMIN_PASSWORD_RESET.md guide with instructions - Update: Admin password reset logic with clear console messages
1.7 KiB
1.7 KiB
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)
- Edit the Helm values file:
~/OneDrive/Desktop/gitea/my-apps/charts/brand-master-chart/values.yaml - Set the following environment variables:
ADMIN_PASSWORD: "your-new-password" FORCE_ADMIN_PASSWORD_RESET: "true" - Deploy the changes:
cd ~/OneDrive/Desktop/gitea/my-apps/charts helm upgrade brand-master ./brand-master-chart -n my-apps - Wait for the backend pod to restart
- Important: After logging in successfully, change
FORCE_ADMIN_PASSWORD_RESETback to"false"and redeploy to prevent password reset on every startup
Method 2: Use Password Reset Flow (If Email is Configured)
- Go to the login page: https://brand-master.dvirlabs.com/login
- Click "Forgot Password"
- Enter your admin email address
- Check your email for the PIN code
- Enter the PIN and your new password
- Login with the new password
Method 3: Change Password from Profile (If Logged In)
- Login to the admin account
- Go to Profile page
- Scroll to "Change Password" section
- Enter old password and new password
- Submit
Current Admin Credentials
Check your deployment values file or pod logs for current credentials:
kubectl logs -n my-apps deployment/brand-master-backend | grep -A 3 "Admin"
Notes
- The
FORCE_ADMIN_PASSWORD_RESETflag 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