Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

allow users to remain logged in for a while. #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion SpecialOAuth2Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private function _handleCallback(){
}

$user = $this->_userHandling( $requestApiResponse );
$user->setOption("rememberpassword", 1);
$user->setCookies();

if( $user->getRegistration() > wfTimestamp( TS_MW ) - 1 ) {
Expand All @@ -127,7 +128,7 @@ private function _handleCallback(){
unset( $_SESSION['returnto'] );
}

if( !$title instanceof Title || 0 > $title->mArticleID ) {
if( !$title instanceof Title ) {
$title = Title::newMainPage();
}
$wgOut->redirect( $title->getFullURL() );
Expand Down