Commit 293cd27f authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

fixed so ajaxlogin works

parent f7fe0475
...@@ -204,7 +204,7 @@ if (!get_config('installed') ...@@ -204,7 +204,7 @@ if (!get_config('installed')
redirect('/admin/'); redirect('/admin/');
} }
if (defined('JSON')) { if (defined('JSON') && !defined('NOSESSKEY')) {
$sesskey = param_variable('sesskey', null); $sesskey = param_variable('sesskey', null);
global $USER; global $USER;
if ($sesskey === null || $USER->get('sesskey') != $sesskey) { if ($sesskey === null || $USER->get('sesskey') != $sesskey) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment