You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(admin): enhance admin modification security and add password change notifications
- Refactor admin ownership and self-modification checks with helper variables for clarity
- Add validation to prevent owner role assignment and modification via standard endpoints
- Prevent non-owner admins from changing their own role
- Add password change detection and automatic logout with re-authentication prompt
- Add localization strings for password change notifications (en, fa, ru, zh)
- Improve admin modal to handle password changes and redirect to login when current admin's password is modified
- Enhance security by invalidating auth token when admin changes their own password
0 commit comments