diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 16:49:54 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 16:49:54 +0200 |
commit | bc0fa40b24f73ccce067f2d23e9aae1335c46694 (patch) | |
tree | fbb29773ce539428caed617738db2ccd4bf59df3 /app/Auth | |
parent | 532ea3b8685cb141526fbcd2cd3dd13667452783 (diff) |
Fix bug HTTPS detection (issue with IIS)
Diffstat (limited to 'app/Auth')
-rw-r--r-- | app/Auth/RememberMe.php | 5 |
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 ); } |