Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
custom-apps
web-app
Commits
6894158d
Commit
6894158d
authored
Oct 16, 2019
by
FORESTIER Fabien
Committed by
ncastejon
Oct 31, 2019
Browse files
Fix bug that prevent user from being logged in
parent
bbc8f8e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/user/services/user.service.ts
View file @
6894158d
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment