mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +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']);
|
||||
|
||||
User::logoff();
|
||||
|
||||
use Hybridauth\Hybridauth;
|
||||
use Hybridauth\HttpClient;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ if (!empty($advancedCustomUser->afterLogoffGoToMyChannel)) {
|
|||
} else {
|
||||
$redirectUri = $global['webSiteRootURL'];
|
||||
}
|
||||
_session_start();
|
||||
User::logoff();
|
||||
Category::clearCacheCount();
|
||||
header("location: {$redirectUri}");
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue