소스 검색

Completed Accept X-Forwarded-User #1215

CauseFX 6 년 전
부모
커밋
3382918820
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      api/functions.php

+ 1 - 5
api/functions.php

@@ -39,11 +39,7 @@ if (isset($GLOBALS['dbLocation'])) {
 	// Oauth?
 	if($GLOBALS['authProxyEnabled'] && $GLOBALS['authProxyHeaderName'] !== '' && $GLOBALS['authProxyWhitelist'] !== ''){
 		if(isset(getallheaders()[$GLOBALS['authProxyHeaderName']])){
-			if(isset($_COOKIE['organizrOAuth'])){
-				coookie('delete','organizrOAuth');
-			}else{
-				coookieSeconds('set', 'organizrOAuth', 'true', 60000);
-			}
+			coookieSeconds('set', 'organizrOAuth', 'true', 20000, false);
 		}
 	}
 	//Upgrade Check