diff options
author | Klap-in <klapinklapin@gmail.com> | 2013-02-16 23:08:08 +0100 |
---|---|---|
committer | Klap-in <klapinklapin@gmail.com> | 2013-02-16 23:08:08 +0100 |
commit | e57cf65d092c1a6458c3a468b017018905018eeb (patch) | |
tree | cb06ff0cf82afed514aa95c5c33e5faef8a9ef62 /inc/auth.php | |
parent | a0e625181ad2e2369e8db0e5691f7356363776d0 (diff) | |
parent | 9bbf02e86e5c1181bbc288ce42f1937f309a7e79 (diff) | |
download | rpg-e57cf65d092c1a6458c3a468b017018905018eeb.tar.gz rpg-e57cf65d092c1a6458c3a468b017018905018eeb.tar.bz2 |
Merge remote-tracking branch 'origin/master' into authpluginconfig
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 7f427bd8d..9566a2615 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -267,7 +267,7 @@ function auth_login($user, $pass, $sticky = false, $silent = false) { function auth_validateToken($token) { if(!$token || $token != $_SESSION[DOKU_COOKIE]['auth']['token']) { // bad token - header("HTTP/1.0 401 Unauthorized"); + http_status(401); print 'Invalid auth token - maybe the session timed out'; unset($_SESSION[DOKU_COOKIE]['auth']['token']); // no second chance exit; |