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:
Csaba Tuncsik 2023-03-31 11:42:11 +02:00 committed by GitHub
parent a13866e233
commit 96533a995c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }) {