aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-05-29 16:09:26 +0200
committerMichael Vogel <icarus@dabo.de>2012-05-29 16:09:26 +0200
commit68757f25042b02624bfb748c25029023b3082f62 (patch)
tree676489a112b4d972e1e5626a6dadfd604fc9ce7a /include/auth.php
parenta08232fa955385b2eaff5f9094b39071fb1632ae (diff)
parent2eafa9a47519f9f35c5eb568cf4235c092c1dcce (diff)
downloadvolse-hubzilla-68757f25042b02624bfb748c25029023b3082f62.tar.gz
volse-hubzilla-68757f25042b02624bfb748c25029023b3082f62.tar.bz2
volse-hubzilla-68757f25042b02624bfb748c25029023b3082f62.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php
index b87662fea..cba6a67a7 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -53,6 +53,8 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
$check = get_config('system','paranoia');
// extra paranoia - if the IP changed, log them out
if($check && ($_SESSION['addr'] != $_SERVER['REMOTE_ADDR'])) {
+ logger('Session address changed. Paranoid setting in effect, blocking session. '
+ . $_SESSION['addr'] . ' != ' . $_SERVER['REMOTE_ADDR']);
nuke_session();
goaway(z_root());
}