mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
OPS-475: Fix Keycloak's account links (#181)
This commit is contained in:
parent
27cdf3c170
commit
1368639ac7
@ -30,6 +30,7 @@
|
||||
"apikeys",
|
||||
"anapi",
|
||||
"libphonenumber",
|
||||
"signingin",
|
||||
|
||||
"SNILS",
|
||||
"ОГРН",
|
||||
|
@ -23,20 +23,12 @@ export class UserComponent {
|
||||
|
||||
username = this.keycloakService.getUsername();
|
||||
activeOrg$ = this.contextOrganizationService.organization$;
|
||||
keycloakAccountEndpoint = `${this.config.keycloakEndpoint}/auth/realms/external/account/`;
|
||||
keycloakAccountEndpoint = `${this.config.keycloakEndpoint}/auth/realms/external/account/#`;
|
||||
userLinksConfig$ = this.transloco.selectTranslation('components').pipe(
|
||||
map(() => [
|
||||
{
|
||||
title: this.transloco.translate('actionbar.user.changePassword', {}, 'components'),
|
||||
href: `${this.keycloakAccountEndpoint}/password`,
|
||||
},
|
||||
{
|
||||
title: this.transloco.translate('actionbar.user.sessions', {}, 'components'),
|
||||
href: `${this.keycloakAccountEndpoint}/sessions`,
|
||||
},
|
||||
{
|
||||
title: this.transloco.translate('actionbar.user.twoFactorAuth', {}, 'components'),
|
||||
href: `${this.keycloakAccountEndpoint}/totp`,
|
||||
title: this.transloco.translate('actionbar.user.accountSecurity', {}, 'components'),
|
||||
href: `${this.keycloakAccountEndpoint}/security/signingin`,
|
||||
},
|
||||
]),
|
||||
);
|
||||
|
@ -4,12 +4,10 @@
|
||||
"title": "Your organizations"
|
||||
},
|
||||
"user": {
|
||||
"changePassword": "Change password",
|
||||
"accountSecurity": "Account security",
|
||||
"logout": "Logout",
|
||||
"orgList": "Organization list",
|
||||
"selectActiveOrg": "Choose an active organization",
|
||||
"sessions": "Session management",
|
||||
"twoFactorAuth": "Two-step authentication"
|
||||
"selectActiveOrg": "Choose an active organization"
|
||||
}
|
||||
},
|
||||
"apiModelDetails": {
|
||||
|
@ -4,12 +4,10 @@
|
||||
"title": "Ваши организации"
|
||||
},
|
||||
"user": {
|
||||
"changePassword": "Сменить пароль",
|
||||
"accountSecurity": "Безопасность учетной записи",
|
||||
"logout": "Выход",
|
||||
"orgList": "Список организаций",
|
||||
"selectActiveOrg": "Выбрать активную организацию",
|
||||
"sessions": "Управление сессиями",
|
||||
"twoFactorAuth": "Двухэтапная аутентификация"
|
||||
"selectActiveOrg": "Выбрать активную организацию"
|
||||
}
|
||||
},
|
||||
"apiModelDetails": {
|
||||
|
Loading…
Reference in New Issue
Block a user