feat(auth,prompt-rule): add password change with session revocation and scope prompt rules by brand
Add self-service password change that re-hashes the credential and bumps a per-user session version so all existing access/refresh tokens are rejected. Session version is tracked in Redis with an in-memory fallback and enforced in middleware and refresh. Scope prompt rules and rule groups to a brand: new brand_id column (migrated to a "未归属" fallback brand for existing rows), brand-filtered queries/indexes, and brand-aware admin-web tabs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -140,6 +140,16 @@ const enUS = {
|
||||
currentCompany: 'Company',
|
||||
currentCompanyPlaceholder: 'Select company',
|
||||
createCompany: 'Create company',
|
||||
changePassword: 'Change password',
|
||||
changePasswordTitle: 'Change password',
|
||||
oldPassword: 'Current password',
|
||||
newPassword: 'New password',
|
||||
confirmNewPassword: 'Confirm new password',
|
||||
passwordMinHint: 'At least 8 characters',
|
||||
passwordValidation:
|
||||
'Enter your current password and set the new password to at least 8 characters.',
|
||||
passwordMismatch: 'The new passwords do not match.',
|
||||
passwordChanged: 'Password updated. Please sign in again with the new password.',
|
||||
openNavigation: 'Open navigation',
|
||||
collapseNavigation: 'Collapse navigation',
|
||||
expandNavigation: 'Expand navigation',
|
||||
|
||||
Reference in New Issue
Block a user