mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Closed #171 - Remove temporary cookie fixes
Related to #161 and associated changes.
This commit is contained in:
parent
679dd6e457
commit
aee4b52d95
22
index.php
22
index.php
@ -24,27 +24,5 @@
|
||||
if($setting->is_demo() === true || preg_match('/app\.beestat\.io/', $_SERVER['HTTP_HOST']) !== 0) {
|
||||
require 'app.php';
|
||||
} else {
|
||||
|
||||
// When on regular beestat.io, delete these cookies.
|
||||
setcookie(
|
||||
'session_key',
|
||||
'',
|
||||
time() - 86400,
|
||||
'/',
|
||||
'',
|
||||
true,
|
||||
true
|
||||
);
|
||||
|
||||
setcookie(
|
||||
'session_user_id',
|
||||
'',
|
||||
time() - 86400,
|
||||
'/',
|
||||
'',
|
||||
true,
|
||||
true
|
||||
);
|
||||
|
||||
require 'www.php';
|
||||
}
|
||||
|
@ -178,8 +178,7 @@ beestat.api.prototype.load_ = function(response_text) {
|
||||
response.data.error_code === 10003 // Could not refresh ecobee token; ecobee returned no token.
|
||||
)
|
||||
) {
|
||||
// window.location.href = '/';
|
||||
window.location.href = 'https://beestat.io';
|
||||
window.location.href = '/';
|
||||
return;
|
||||
} else if (response.data && response.data.error_code === 1209) {
|
||||
// Could not get lock; safe to ignore as that means sync is running.
|
||||
|
Loading…
x
Reference in New Issue
Block a user