diff --git a/src/portal/src/app/sign-in/sign-in.component.ts b/src/portal/src/app/sign-in/sign-in.component.ts index 67b5b0e47..a38786500 100644 --- a/src/portal/src/app/sign-in/sign-in.component.ts +++ b/src/portal/src/app/sign-in/sign-in.component.ts @@ -145,7 +145,8 @@ export class SignInComponent implements AfterViewChecked, OnInit { return this.appConfig.auth_mode === 'oidc_auth'; } public get showForgetPwd(): boolean { - return this.appConfig.auth_mode !== 'ldap_auth' && this.appConfig.auth_mode !== 'uaa_auth'; + return this.appConfig.auth_mode !== 'ldap_auth' && this.appConfig.auth_mode !== 'uaa_auth' + && this.appConfig.auth_mode !== 'oidc_auth'; } clickRememberMe($event: any): void { if ($event && $event.target) { diff --git a/src/portal/src/app/user/user.component.ts b/src/portal/src/app/user/user.component.ts index 3e413146a..3110bc82b 100644 --- a/src/portal/src/app/user/user.component.ts +++ b/src/portal/src/app/user/user.component.ts @@ -106,7 +106,7 @@ export class UserComponent implements OnInit, OnDestroy { public get canCreateUser(): boolean { let appConfig = this.appConfigService.getConfig(); if (appConfig) { - return !(appConfig.auth_mode === 'ldap_auth' || appConfig.auth_mode === 'uaa_auth'); + return !(appConfig.auth_mode === 'ldap_auth' || appConfig.auth_mode === 'uaa_auth' || appConfig.auth_mode === 'oidc_auth'); } else { return true; }