Commit 6894158d authored by FORESTIER Fabien's avatar FORESTIER Fabien Committed by ncastejon
Browse files

Fix bug that prevent user from being logged in

parent bbc8f8e3
......@@ -29,8 +29,7 @@ export class UserService {
// Function and helpers allowing the management of the user session (jwt), info...
setSession(authResult): boolean {
let success = false;
if (authResult && authResult.userInfo && authResult.xsrfToken) {
localStorage.setItem('xsrfToken', authResult.xsrfToken);
if (authResult && authResult.userInfo) {
this._user = new User(authResult.userInfo);
success = true;;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment