Enhance auth-guard service for new API
This commit is contained in:
parent
a0291fb05e
commit
040fc22e69
1 changed files with 1 additions and 3 deletions
|
@ -3,12 +3,10 @@ import { CanActivate, Router, RouterStateSnapshot, ActivatedRouteSnapshot } from
|
|||
import {HttpClient, HttpParams} from '@angular/common/http';
|
||||
import { UserService } from './user.service';
|
||||
import { Subscription, Observable } from 'rxjs';
|
||||
import { Owner } from './owner.model';
|
||||
|
||||
@Injectable()
|
||||
|
||||
export class AuthGuardService implements CanActivate {
|
||||
private UserSub: Subscription = new Subscription();
|
||||
private addr = '';
|
||||
private paid = false;
|
||||
private paidUpdate: Observable<boolean>;
|
||||
|
@ -32,7 +30,7 @@ export class AuthGuardService implements CanActivate {
|
|||
this.userService.uZaddrUpdate.
|
||||
subscribe((addr) => {
|
||||
if (addr != null) {
|
||||
console.log(addr);
|
||||
//console.log(addr);
|
||||
this.addr = addr;
|
||||
} else {
|
||||
console.log("No record for that token");
|
||||
|
|
Loading…
Reference in a new issue