UI: Not redirect to the previous link after login with 2FA
This commit is contained in:
parent
578075e9b8
commit
33fe04a7a0
@ -268,7 +268,9 @@ export class AuthService {
|
|||||||
public defaultUrl(isAuthenticated: boolean, authState?: AuthState, path?: string, params?: any): UrlTree {
|
public defaultUrl(isAuthenticated: boolean, authState?: AuthState, path?: string, params?: any): UrlTree {
|
||||||
let result: UrlTree = null;
|
let result: UrlTree = null;
|
||||||
if (isAuthenticated) {
|
if (isAuthenticated) {
|
||||||
if (!path || path === 'login' || this.forceDefaultPlace(authState, path, params)) {
|
if (authState.authUser.authority === Authority.PRE_VERIFICATION_TOKEN) {
|
||||||
|
result = this.router.parseUrl('login/mfa');
|
||||||
|
} else if (!path || path === 'login' || this.forceDefaultPlace(authState, path, params)) {
|
||||||
if (this.redirectUrl) {
|
if (this.redirectUrl) {
|
||||||
const redirectUrl = this.redirectUrl;
|
const redirectUrl = this.redirectUrl;
|
||||||
this.redirectUrl = null;
|
this.redirectUrl = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user