config.php might not exist, eg in monolith mode
This commit is contained in:
parent
699087cd98
commit
f198128f06
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class User {
|
||||||
*/
|
*/
|
||||||
public function get_auth_token() {
|
public function get_auth_token() {
|
||||||
global $config;
|
global $config;
|
||||||
$salt = file_get_contents("config.php");
|
$salt = DATABASE_DSN;
|
||||||
$addr = get_session_ip($config);
|
$addr = get_session_ip($config);
|
||||||
return md5(md5($this->passhash . $addr) . "salty-csrf-" . $salt);
|
return md5(md5($this->passhash . $addr) . "salty-csrf-" . $salt);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue