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
55d958c7
Commit
55d958c7
authored
Mar 02, 2021
by
frankiejol
Browse files
refactor(frontend): double logout to finish WS
parent
b847e558
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/rvd_front
View file @
55d958c7
...
...
@@ -170,7 +170,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{^/$};
...
...
@@ -1559,7 +1559,6 @@ sub _logged_in {
$c->stash(_logged_in => $login );
$c->stash(_user => $USER);
$c->stash(_anonymous => !$USER);
}
$c->stash(url => undef);
...
...
@@ -1654,7 +1653,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