Skip to content

Commit da3fc49

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2485 Fixed issue with login not working as expected (backdoor and external login broken)
1 parent 190db0c commit da3fc49

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/app/app-routing.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,14 @@ import {
184184
data: {
185185
isBackDoor: true,
186186
},
187-
canMatch: [() => environment.auth.disableStandardLogin],
187+
canMatch: [() => !environment.auth.disableStandardLogin],
188188
},
189189
{
190190
path: 'login',
191191
loadChildren: () => import('./login-page/login-page.module').then((m) => m.LoginPageModule),
192192
data: {
193193
isBackDoor: false,
194194
},
195-
canMatch: [() => !environment.auth.disableStandardLogin],
196195
},
197196
{
198197
path: 'external-login/:token',

src/app/shared/log-in/log-in.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class LogInComponent implements OnInit, OnDestroy {
132132
if (isBackdoor) {
133133
return authM.authMethodType === AuthMethodType.Password;
134134
}
135-
if (isStandardLoginDisabled) {
135+
if (!isStandardLoginDisabled) {
136136
return authM.authMethodType !== AuthMethodType.Password;
137137
}
138138
return true;

src/config/default-app-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class DefaultAppConfig implements AppConfig {
136136
// This is independent from the idle warning.
137137
timeLeftBeforeTokenRefresh: 2 * 60 * 1000 // 2 minutes
138138
},
139-
disableStandardLogin: false, // Enable the standard login form
139+
disableStandardLogin: true, // Enable the standard login form
140140
};
141141

142142
// Form settings

0 commit comments

Comments
 (0)