mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +01:00
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:
parent
d022ad4cd4
commit
32fc76c666
@ -113,8 +113,8 @@ export class NavigatorComponent implements OnInit {
|
|||||||
let user = this.session.getCurrentUser();
|
let user = this.session.getCurrentUser();
|
||||||
let config = this.appConfigService.getConfig();
|
let config = this.appConfigService.getConfig();
|
||||||
|
|
||||||
return user && ((config && !(config.auth_mode === "ldap_auth" || config.auth_mode === "uaa_auth")) ||
|
return user && ((config && !(config.auth_mode === "ldap_auth" || config.auth_mode === "uaa_auth"
|
||||||
(user.user_id === 1 && user.username === "admin"));
|
|| config.auth_mode === "oidc_auth")) || (user.user_id === 1 && user.username === "admin"));
|
||||||
}
|
}
|
||||||
|
|
||||||
matchLang(lang: string): boolean {
|
matchLang(lang: string): boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user