Skip to content
Snippets Groups Projects
Commit 67683c17 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #13830 TIME 0:30 show private key warning modal in login page

parent 32d461f4
No related branches found
No related tags found
No related merge requests found
......@@ -77,17 +77,6 @@ export class LoginComponent implements OnInit {
tap((data: any) => {
this.authService.saveTokens(data.headers.get('Token'), data.headers.get('Refresh-Token'));
this.authService.setUser({});
if (this.authService.changeKey) {
this.dialog.open(AlertComponent, {
panelClass: 'maarch-modal',
autoFocus: false,
disableClose: true,
data: {
mode: 'danger',
title: this.lang.warnPrivateKeyTitle,
msg: this.lang.warnPrivateKey
} });
}
if (this.authService.getCachedUrl()) {
this.router.navigateByUrl(this.authService.getCachedUrl());
this.authService.cleanCachedUrl();
......@@ -121,6 +110,18 @@ export class LoginComponent implements OnInit {
this.authService.changeKey = data.changeKey;
this.applicationName = data.applicationName;
this.loginMessage = data.loginMessage;
if (this.authService.changeKey) {
this.dialog.open(AlertComponent, {
panelClass: 'maarch-modal',
autoFocus: false,
disableClose: true,
data: {
mode: 'danger',
title: this.lang.warnPrivateKeyTitle,
msg: this.lang.warnPrivateKey
} });
}
}),
finalize(() => this.showForm = true),
catchError((err: any) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment