Browse Source
Update npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts
Co-authored-by: Levent Arman Özak <arman@armanozak.com>
pull/5714/head
Bunyamin Coskuner
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts
|
|
|
@ -9,9 +9,7 @@ export class ManageProfileGuard implements CanActivate { |
|
|
|
canActivate(_: ActivatedRouteSnapshot, __: RouterStateSnapshot) { |
|
|
|
const env = this.configState.getEnvironment(); |
|
|
|
if (env.oAuthConfig.responseType === 'code') { |
|
|
|
window.location.replace( |
|
|
|
`${env.oAuthConfig.issuer}/Account/Manage?returnUrl=${window.location.href}`, |
|
|
|
); |
|
|
|
window.location.href = `${env.oAuthConfig.issuer}/Account/Manage?returnUrl=${window.location.href}`; |
|
|
|
return false; |
|
|
|
} else { |
|
|
|
return true; |
|
|
|
|