1
0
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:
Jon Ziebell 2020-01-03 08:08:27 -05:00
parent 679dd6e457
commit aee4b52d95
2 changed files with 1 additions and 24 deletions

View File

@ -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';
}

View File

@ -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.