Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
78e9f19f
Commit
78e9f19f
authored
Mar 02, 2021
by
frankiejol
Committed by
Francesc Guasch
Mar 02, 2021
Browse files
refactor(frontend): double logout to finish WS
parent
33330067
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/rvd_front
View file @
78e9f19f
...
...
@@ -171,7 +171,7 @@ hook before_routes => sub {
return if $url =~ m{^/(css|font|img|js)}
|| $url =~ m{^/fallback/.*\.(css|js|map)$};
return if $url =~ m{^/(login|logout|requirements|robots.txt)};
return if $url =~ m{^/(login|logout|requirements|robots.txt
|favicon.ico
)};
if ( $RAVADA->is_in_maintenance ) {
return login($c) if !$USER
&&
$url =~ m{^/$};
...
...
@@ -1734,7 +1734,6 @@ sub _logged_in {
$c->stash(_logged_in => $login );
$c->stash(_user => $USER);
$c->stash(_anonymous => !$USER);
}
$c->stash(url => undef);
...
...
@@ -1829,7 +1828,10 @@ sub logout {
my $c = shift;
$USER = undef;
$c->session(expires => 1);
$c->session(expires => -1);
$c->session(login => undef);
sleep 1;
$c->session(expires => -1);
$c->session(login => undef);
}
...
...
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