projects
/
authserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
46f7aed
)
add a comment for debugging - we may want to add an insecure local domain name for...
author
Robert Kaiser
<kairo@kairo.at>
Mon, 14 Nov 2016 21:00:57 +0000
(22:00 +0100)
committer
Robert Kaiser
<kairo@kairo.at>
Mon, 14 Nov 2016 21:00:57 +0000
(22:00 +0100)
authutils.php-class
patch
|
blob
|
blame
|
history
diff --git
a/authutils.php-class
b/authutils.php-class
index 9cd000c492d6c1e0ac8872fea75a124e410cb8a3..e72768a2bd35c883384d47fec68ff7375a8f5544 100755
(executable)
--- a/
authutils.php-class
+++ b/
authutils.php-class
@@
-77,6
+77,7
@@
class AuthUtils {
// *** constructor ***
$this->db = $db;
$this->db->exec("SET time_zone='+00:00';"); // Execute directly on PDO object, set session to UTC to make our gmdate() values match correctly.
// *** constructor ***
$this->db = $db;
$this->db->exec("SET time_zone='+00:00';"); // Execute directly on PDO object, set session to UTC to make our gmdate() values match correctly.
+ // For debugging, potentially add |robert\.box\.kairo\.at to that regex temporarily.
$this->running_on_localhost = preg_match('/^((.+\.)?localhost|127\.0\.0\.\d+)$/', $_SERVER['SERVER_NAME']);
if (array_key_exists('pwd_cost', $settings)) {
$this->pwd_cost = $settings['pwd_cost'];
$this->running_on_localhost = preg_match('/^((.+\.)?localhost|127\.0\.0\.\d+)$/', $_SERVER['SERVER_NAME']);
if (array_key_exists('pwd_cost', $settings)) {
$this->pwd_cost = $settings['pwd_cost'];