Robmoen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/163108
Change subject: Make onPostLoginRedirect behave the same as
onCentralAuthPostLoginRedirect
......................................................................
Make onPostLoginRedirect behave the same as onCentralAuthPostLoginRedirect
Automatically redirect the user to the previous page
Change-Id: Ibd4d51a58ac27efaffb02c1a7ef3a3c39e420640
---
M Hooks.php
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GettingStarted
refs/changes/08/163108/1
diff --git a/Hooks.php b/Hooks.php
index 79c099b..46f7557 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -428,10 +428,8 @@
if ( !self::shouldShowGettingStarted( $returnToQuery, $type ) )
{
return true;
}
- // TODO: rmoen 2014-05-30 determine if we want to mock the
current bahavior
- // if CentralAuth is not enabled. Note: Auto redirecting is out
of the normal
- // login flow for users logging in on wikis not running C.A.
- // This can be done by setting $type = 'successredirect';
+ // Behave like centralAuth and auto redirect to previous page
+ $type = 'successredirect';
$returnToQuery['gettingStartedReturn'] = 'true';
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/163108
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibd4d51a58ac27efaffb02c1a7ef3a3c39e420640
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GettingStarted
Gerrit-Branch: master
Gerrit-Owner: Robmoen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits