Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maxime Besson
lemonldap-ng
Commits
ad6b42e9
Commit
ad6b42e9
authored
Dec 22, 2016
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propage portal logout to handler (#595)
parent
13514267
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
+3
-2
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
+1
-0
No files found.
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
View file @
ad6b42e9
...
...
@@ -610,6 +610,7 @@ sub abort {
# Delete current user from local cache entry.
sub
localUnlog
{
my
(
$class
,
$id
)
=
@_
;
$class
->
lmLog
('
Local handler logout
','
debug
');
if
(
$id
//
=
$class
->
fetchId
)
{
# Delete thread datas
...
...
@@ -629,9 +630,9 @@ sub localUnlog {
## @rmethod protected int unlog()
# Call localUnlog() then goToPortal() to unlog the current user.
# @return Constant value returned by goToPortal()
sub
unlog
($$)
{
sub
unlog
{
my
$class
=
shift
;
$class
->
localUnlog
;
$class
->
localUnlog
(
@
_
)
;
$class
->
updateStatus
('
LOGOUT
');
return
$class
->
goToPortal
(
'
/
',
'
logout=1
'
);
}
...
...
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
View file @
ad6b42e9
...
...
@@ -444,6 +444,7 @@ sub _deleteSession {
)
unless
(
$preserveCookie
);
}
HANDLER
->
unlog
(
$session
->
id
);
$session
->
remove
;
# Create an obsolete cookie to remove it
...
...
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