1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing broken tests

This commit is contained in:
Braun Patrik 2017-07-14 09:11:04 +02:00
parent 3a72f5e3d2
commit 238e6cf070

View File

@ -18,11 +18,9 @@ export class AuthenticationService {
constructor(private _userService: UserService) { constructor(private _userService: UserService) {
this.user = new BehaviorSubject(null); this.user = new BehaviorSubject(null);
console.log(ServerInject.user);
//picking up session.. //picking up session..
if (this.isAuthenticated() == false && Cookie.get('pigallery2-session') != null) { if (this.isAuthenticated() == false && Cookie.get('pigallery2-session') != null) {
if (typeof ServerInject !== "undefined" && typeof ServerInject.user !== "undefined") { if (typeof ServerInject !== "undefined" && typeof ServerInject.user !== "undefined") {
console.log(ServerInject.user);
this.user.next(ServerInject.user); this.user.next(ServerInject.user);
} }
this.getSessionUser(); this.getSessionUser();