summaryrefslogtreecommitdiff
path: root/app/Auth
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-08 16:49:54 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-08 16:49:54 +0200
commitbc0fa40b24f73ccce067f2d23e9aae1335c46694 (patch)
treefbb29773ce539428caed617738db2ccd4bf59df3 /app/Auth
parent532ea3b8685cb141526fbcd2cd3dd13667452783 (diff)
Fix bug HTTPS detection (issue with IIS)
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/RememberMe.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php
index 3cf6fc86..50e0bcef 100644
--- a/app/Auth/RememberMe.php
+++ b/app/Auth/RememberMe.php
@@ -3,6 +3,7 @@
namespace Auth;
use Core\Security;
+use Core\Tool;
/**
* RememberMe model
@@ -309,7 +310,7 @@ class RememberMe extends Base
$expiration,
BASE_URL_DIRECTORY,
null,
- ! empty($_SERVER['HTTPS']),
+ Tool::isHTTPS(),
true
);
}
@@ -342,7 +343,7 @@ class RememberMe extends Base
time() - 3600,
BASE_URL_DIRECTORY,
null,
- ! empty($_SERVER['HTTPS']),
+ Tool::isHTTPS(),
true
);
}