Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
6f3bdfd9
Commit
6f3bdfd9
authored
Dec 30, 2019
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More security in handler in-memory session
parent
23b79199
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
+7
-8
No files found.
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
View file @
6f3bdfd9
...
...
@@ -481,6 +481,9 @@ sub retrieveSession {
$class
->
logger
->
debug
("
Get session
$id
from Handler internal cache
");
return
$class
->
data
;
}
else
{
$class
->
data
(
{}
);
}
# 2. Get the session from cache or backend
my
$session
=
$req
->
data
->
{
session
}
=
(
...
...
@@ -763,15 +766,11 @@ sub abort {
sub
localUnlog
{
my
(
$class
,
$req
,
$id
)
=
@_
;
$class
->
logger
->
debug
('
Local handler logout
');
if
(
$id
//
=
$class
->
fetchId
(
$req
)
)
{
# Delete thread data
if
(
$class
->
data
->
{
_session_id
}
and
$id
eq
$class
->
data
->
{
_session_id
}
)
{
$class
->
data
(
{}
);
}
delete
$req
->
data
->
{
session
};
# Delete thread data
delete
$req
->
data
->
{
session
};
$class
->
data
(
{}
);
if
(
$id
//
=
$class
->
fetchId
(
$req
)
)
{
# Delete local cache
if
(
$class
->
tsv
->
{
refLocalStorage
}
...
...
Write
Preview
Markdown
is supported
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