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
Nicolas PERNOUD
Vestibule
Commits
d7c88c6f
Commit
d7c88c6f
authored
Jun 15, 2021
by
Nicolas Pernoud
Browse files
fix: redirection loop after cookie expires
parent
3d49f59a
Pipeline
#14497
passed with stages
in 2 minutes and 51 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
web/components/login/login.js
View file @
d7c88c6f
...
...
@@ -17,6 +17,15 @@ export class Login {
login_icon
;
async
mount
(
mountpoint
)
{
// Refresh the user, even if empty
const
newUser
=
await
Auth
.
GetUser
();
if
(
IsEmpty
(
newUser
))
{
Object
.
keys
(
this
.
user
).
forEach
((
key
)
=>
{
delete
this
.
user
[
key
];
});
}
else
{
Object
.
assign
(
this
.
user
,
newUser
);
}
if
(
!
IsEmpty
(
this
.
user
))
{
document
.
getElementById
(
mountpoint
).
innerHTML
=
""
;
location
.
hash
=
"
#
"
;
...
...
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