Skip to content

Commit dc0d44c

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

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/app/app-routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,14 @@ export const APP_ROUTES: Route[] = [
187187
data: {
188188
isBackDoor: true,
189189
},
190-
canMatch: [() => environment.auth.disableStandardLogin],
190+
canMatch: [() => !environment.auth.disableStandardLogin],
191191
},
192192
{
193193
path: 'login',
194194
loadChildren: () => import('./login-page/login-page-routes').then((m) => m.ROUTES),
195195
data: {
196196
isBackDoor: false,
197197
},
198-
canMatch: [() => !environment.auth.disableStandardLogin],
199198
},
200199
{
201200
path: 'logout',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export class LogInComponent implements OnInit, OnDestroy {
167167
if (isBackdoor) {
168168
return authM.authMethodType === AuthMethodType.Password;
169169
}
170-
if (isStandardLoginDisabled) {
170+
if (!isStandardLoginDisabled) {
171171
return authM.authMethodType !== AuthMethodType.Password;
172172
}
173173
return true;

src/config/default-app-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class DefaultAppConfig implements AppConfig {
147147
// This is independent from the idle warning.
148148
timeLeftBeforeTokenRefresh: 2 * 60 * 1000, // 2 minutes
149149
},
150-
disableStandardLogin: false, // Enable the standard login form
150+
disableStandardLogin: true, // Enable the standard login form
151151
};
152152

153153
// Form settings

0 commit comments

Comments
 (0)