From 149cf6c3086c92d5b08b9eb90da8627785c3c944 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Tue, 24 May 2016 14:19:09 -0300 Subject: [PATCH] Login with noosfero cookie in the new frontend --- src/app/main/main.component.ts | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts index 9519618..dc4f9f4 100644 --- a/src/app/main/main.component.ts +++ b/src/app/main/main.component.ts @@ -110,6 +110,11 @@ export class EnvironmentContent { component: MainContentComponent, abstract: true, name: 'main', + resolve: { + currentUser: function(AuthService: AuthService) { + return AuthService.loginFromCookie(); + } + } }, { url: '/', -- libgit2 0.21.2