Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
476b14f
commit 04c902a
Showing
7 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
use WebGUI::Upgrade::Script; | ||
start_step "Adding Redirect After Logout setting"; | ||
session->setting->add('redirectAfterLogoutUrl'); | ||
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# vim:syntax=perl | ||
#------------------------------------------------------------------- | ||
# WebGUI is Copyright 2001-2009 Plain Black Corporation. | ||
#------------------------------------------------------------------- | ||
# Please read the legal notices (docs/legal.txt) and the license | ||
# (docs/license.txt) that came with this distribution before using | ||
# this software. | ||
#------------------------------------------------------------------ | ||
# http://www.plainblack.com info@plainblack.com | ||
#------------------------------------------------------------------ | ||
|
||
# Test Auth::LDAP to make sure it works with both ldap and ldaps | ||
# | ||
# | ||
|
||
use FindBin; | ||
use strict; | ||
use lib "$FindBin::Bin/../lib"; | ||
use Test::More; | ||
use WebGUI::Test; # Must use this before any other WebGUI modules | ||
use WebGUI::Session; | ||
|
||
#---------------------------------------------------------------------------- | ||
# Init | ||
my $session = WebGUI::Test->session; | ||
|
||
my $user = WebGUI::User->create($session); | ||
WebGUI::Test->addToCleanup($user); | ||
|
||
$session->setting->set('redirectAfterLogoutUrl'); | ||
$user->authInstance->www_logout; | ||
is $session->response->redirect, undef, 'no redirect set on logout'; | ||
|
||
$session->setting->set('redirectAfterLogoutUrl', '/other_page'); | ||
$user->authInstance->www_logout; | ||
is $session->response->redirect, '/other_page', 'redirect set on logout'; | ||
|
||
done_testing; |