mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
fix
This commit is contained in:
parent
1cc484720e
commit
98b88ab3f8
3 changed files with 4 additions and 2 deletions
|
@ -35,6 +35,8 @@ if(!isSameDomain($global['webSiteRootURL'], $_POST['redirectUri'])){
|
||||||
}
|
}
|
||||||
_error_log("Start Login Request redirectUri=" . $_POST['redirectUri']);
|
_error_log("Start Login Request redirectUri=" . $_POST['redirectUri']);
|
||||||
|
|
||||||
|
User::logoff();
|
||||||
|
|
||||||
use Hybridauth\Hybridauth;
|
use Hybridauth\Hybridauth;
|
||||||
use Hybridauth\HttpClient;
|
use Hybridauth\HttpClient;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ if (!empty($advancedCustomUser->afterLogoffGoToMyChannel)) {
|
||||||
} else {
|
} else {
|
||||||
$redirectUri = $global['webSiteRootURL'];
|
$redirectUri = $global['webSiteRootURL'];
|
||||||
}
|
}
|
||||||
_session_start();
|
|
||||||
User::logoff();
|
User::logoff();
|
||||||
Category::clearCacheCount();
|
Category::clearCacheCount();
|
||||||
header("location: {$redirectUri}");
|
header("location: {$redirectUri}");
|
||||||
|
|
|
@ -1063,8 +1063,9 @@ if (typeof gtag !== \"function\") {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function logoff() {
|
public static function logoff() {
|
||||||
global $global, $justLogoff;
|
global $global, $justLogoff, $isLogged;
|
||||||
$justLogoff = true;
|
$justLogoff = true;
|
||||||
|
$isLogged = false;
|
||||||
_session_start();
|
_session_start();
|
||||||
ObjectYPT::deleteAllSessionCache();
|
ObjectYPT::deleteAllSessionCache();
|
||||||
_unsetcookie('rememberme');
|
_unsetcookie('rememberme');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue