From f198128f063812a6459958a3cd0db878dd8ea85f Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 2 Feb 2012 03:53:18 +0000 Subject: [PATCH] config.php might not exist, eg in monolith mode --- core/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/user.class.php b/core/user.class.php index 0220ef23..cfac108b 100644 --- a/core/user.class.php +++ b/core/user.class.php @@ -173,7 +173,7 @@ class User { */ public function get_auth_token() { global $config; - $salt = file_get_contents("config.php"); + $salt = DATABASE_DSN; $addr = get_session_ip($config); return md5(md5($this->passhash . $addr) . "salty-csrf-" . $salt); }