Skip to content

Commit

Permalink
Merge pull request #1854 from ksprabin/EMBCESSMOD-4696
Browse files Browse the repository at this point in the history
EMBCESSMOD-4696
  • Loading branch information
KyleKayfish authored Jan 15, 2024
2 parents 6befb85 + 98c360f commit 666d576
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ export class LoginService {
public async login(targetUrl: string = undefined): Promise<boolean> {
return await this.oauthService.tryLoginImplicitFlow().then(() => {
if (!this.oauthService.hasValidAccessToken()) {
this.oauthService.initImplicitFlow(targetUrl);
this.isLoggedIn$.next(false);
return Promise.resolve(false);
if (targetUrl == '/verified-registration') {
this.oauthService.initImplicitFlow(targetUrl);
this.isLoggedIn$.next(false);
return Promise.resolve(false);
}
else {
this.router.navigateByUrl('/');
this.isLoggedIn$.next(false);
return Promise.resolve(false);
}
}
this.isLoggedIn$.next(true);
return Promise.resolve(true);
Expand Down

0 comments on commit 666d576

Please sign in to comment.