mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): Disable password reset on desktop with no user management (#5853)
* fix(editor): disable password reset on desktop if there is no user management * fix(editor): disable password reset on desktop if there is no user management
This commit is contained in:
parent
a13866e233
commit
96533a995c
|
@ -44,7 +44,6 @@ export default mixins(showMessage).extend({
|
|||
title: this.$locale.baseText('auth.signin'),
|
||||
buttonText: this.$locale.baseText('auth.signin'),
|
||||
redirectText: this.$locale.baseText('forgotPassword'),
|
||||
redirectLink: '/forgot-password',
|
||||
inputs: [
|
||||
{
|
||||
name: 'email',
|
||||
|
@ -73,6 +72,10 @@ export default mixins(showMessage).extend({
|
|||
},
|
||||
],
|
||||
};
|
||||
|
||||
if (!this.settingsStore.isDesktopDeployment || this.settingsStore.isUserManagementEnabled) {
|
||||
this.FORM_CONFIG.redirectLink = '/forgot-password';
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async onSubmit(values: { [key: string]: string }) {
|
||||
|
|
Loading…
Reference in a new issue