Remove OIDC's ability to change passwords

remove the ability  to change passwords when user login harbor through OIDC.

Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
Yogi_Wang 2019-04-23 15:15:01 +08:00
parent d022ad4cd4
commit 32fc76c666

View File

@ -113,8 +113,8 @@ export class NavigatorComponent implements OnInit {
let user = this.session.getCurrentUser();
let config = this.appConfigService.getConfig();
return user && ((config && !(config.auth_mode === "ldap_auth" || config.auth_mode === "uaa_auth")) ||
(user.user_id === 1 && user.username === "admin"));
return user && ((config && !(config.auth_mode === "ldap_auth" || config.auth_mode === "uaa_auth"
|| config.auth_mode === "oidc_auth")) || (user.user_id === 1 && user.username === "admin"));
}
matchLang(lang: string): boolean {