brand-master/ADMIN_PASSWORD_RESET.md
dvirlabs ad96ec33e6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fix product filters and add admin password reset feature
- 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
2026-05-11 08:04:19 +03:00

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:

  1. Edit the Helm values file: ~/OneDrive/Desktop/gitea/my-apps/charts/brand-master-chart/values.yaml
  2. Set the following environment variables:
    ADMIN_PASSWORD: "your-new-password"
    FORCE_ADMIN_PASSWORD_RESET: "true"
    
  3. Deploy the changes:
    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:

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