File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ void ApiQuery::SetAction(const Action action)
417417 this ->ActionPart = " login" ;
418418 this ->EnforceLogin = false ;
419419 return ;
420- case ClientLogin :
420+ case ActionClientLogin :
421421 this ->ActionPart = " clientlogin" ;
422422 this ->EnforceLogin = false ;
423423 return ;
Original file line number Diff line number Diff line change @@ -1291,7 +1291,9 @@ bool Login::ProcessOutput(WikiSite *site)
12911291 query->IncRef ();
12921292 query->Parameters = " username=" + QUrl::toPercentEncoding (hcfg->SystemConfig_BotLogin )
12931293 + " &password=" + QUrl::toPercentEncoding (hcfg->TemporaryConfig_Password )
1294- + " &OATHToken=" + totp + " &loginreturnurl=http://example.com/&rememberMe=1&logintoken=" + QUrl::toPercentEncoding (this ->Tokens [site]);
1294+ + " &OATHToken=" + totp +
1295+ + " &logintoken=" + QUrl::toPercentEncoding (this ->Tokens [site])
1296+ + " &logincontinue=1&rememberMe=1" ;
12951297 query->UsingPOST = true ;
12961298 query->Process ();
12971299 ApiQueryResult *result = query->GetApiQueryResult ();
You can’t perform that action at this time.
0 commit comments