mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(editor): Disable changing of email and pw when SAML login enabled (#6104)
This commit is contained in:
parent
983e6e124e
commit
3e9ecd9397
|
@ -32,7 +32,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!signInWithLdap">
|
<div v-if="!signInWithLdap && !signInWithSaml">
|
||||||
<div :class="$style.sectionHeader">
|
<div :class="$style.sectionHeader">
|
||||||
<n8n-heading size="large">{{ $locale.baseText('settings.personal.security') }}</n8n-heading>
|
<n8n-heading size="large">{{ $locale.baseText('settings.personal.security') }}</n8n-heading>
|
||||||
</div>
|
</div>
|
||||||
|
@ -114,7 +114,7 @@ export default mixins(showMessage).extend({
|
||||||
validationRules: [{ name: 'VALID_EMAIL' }],
|
validationRules: [{ name: 'VALID_EMAIL' }],
|
||||||
autocomplete: 'email',
|
autocomplete: 'email',
|
||||||
capitalize: true,
|
capitalize: true,
|
||||||
disabled: this.isLDAPFeatureEnabled && this.signInWithLdap,
|
disabled: (this.isLDAPFeatureEnabled && this.signInWithLdap) || this.signInWithSaml,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -130,6 +130,11 @@ export default mixins(showMessage).extend({
|
||||||
isLDAPFeatureEnabled(): boolean {
|
isLDAPFeatureEnabled(): boolean {
|
||||||
return this.settingsStore.settings.enterprise.ldap === true;
|
return this.settingsStore.settings.enterprise.ldap === true;
|
||||||
},
|
},
|
||||||
|
signInWithSaml(): boolean {
|
||||||
|
return (
|
||||||
|
this.settingsStore.isSamlLoginEnabled && this.settingsStore.isDefaultAuthenticationSaml
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onInput() {
|
onInput() {
|
||||||
|
|
Loading…
Reference in a new issue