Commit 149cf6c3086c92d5b08b9eb90da8627785c3c944
1 parent
45978e40
Exists in
master
and in
20 other branches
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 | 110 | component: MainContentComponent, |
111 | 111 | abstract: true, |
112 | 112 | name: 'main', |
113 | + resolve: { | |
114 | + currentUser: function(AuthService: AuthService) { | |
115 | + return AuthService.loginFromCookie(); | |
116 | + } | |
117 | + } | |
113 | 118 | }, |
114 | 119 | { |
115 | 120 | url: '/', | ... | ... |