Commit 149cf6c3086c92d5b08b9eb90da8627785c3c944

Authored by Victor Costa
1 parent 45978e40

Login with noosfero cookie in the new frontend

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
src/app/main/main.component.ts
@@ -110,6 +110,11 @@ export class EnvironmentContent { @@ -110,6 +110,11 @@ export class EnvironmentContent {
110 component: MainContentComponent, 110 component: MainContentComponent,
111 abstract: true, 111 abstract: true,
112 name: 'main', 112 name: 'main',
  113 + resolve: {
  114 + currentUser: function(AuthService: AuthService) {
  115 + return AuthService.loginFromCookie();
  116 + }
  117 + }
113 }, 118 },
114 { 119 {
115 url: '/', 120 url: '/',