1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel 2022-07-30 10:25:15 -03:00
parent 1cc484720e
commit 98b88ab3f8
3 changed files with 4 additions and 2 deletions

View file

@ -35,6 +35,8 @@ if(!isSameDomain($global['webSiteRootURL'], $_POST['redirectUri'])){
}
_error_log("Start Login Request redirectUri=" . $_POST['redirectUri']);
User::logoff();
use Hybridauth\Hybridauth;
use Hybridauth\HttpClient;

View file

@ -12,7 +12,6 @@ if (!empty($advancedCustomUser->afterLogoffGoToMyChannel)) {
} else {
$redirectUri = $global['webSiteRootURL'];
}
_session_start();
User::logoff();
Category::clearCacheCount();
header("location: {$redirectUri}");

View file

@ -1063,8 +1063,9 @@ if (typeof gtag !== \"function\") {
}
public static function logoff() {
global $global, $justLogoff;
global $global, $justLogoff, $isLogged;
$justLogoff = true;
$isLogged = false;
_session_start();
ObjectYPT::deleteAllSessionCache();
_unsetcookie('rememberme');