Skip to content
/ qp-n8n Public
forked from n8n-io/n8n

Commit

Permalink
fix(editor): Disable password reset on desktop with no user management (
Browse files Browse the repository at this point in the history
n8n-io#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
  • Loading branch information
cstuncsik authored and sunilrr committed Apr 24, 2023
1 parent f0a502f commit d5d797e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/editor-ui/src/views/SigninView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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 }) {
Expand Down

0 comments on commit d5d797e

Please sign in to comment.