Skip to content
Snippets Groups Projects
Commit 58ec2e7b authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Fix bug that prevent user from being logged in

parent 3792d57e
No related branches found
No related tags found
1 merge request!53Version 2.3.2
Pipeline #1779 passed
......@@ -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;
this._userStatusChangedSubject.next(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment