Commit 2c8d2615 authored by Nigel McNie's avatar Nigel McNie Committed by Penny Leach
Browse files

Return a 'logged out' error code when the sesskey is invalid

parent a7c6fd11
......@@ -206,7 +206,7 @@ if (defined('JSON')) {
global $USER;
if ($sesskey === null || $USER->get('sesskey') != $sesskey) {
$USER->logout();
json_reply('global', get_string('invalidsesskey'));
json_reply('global', get_string('invalidsesskey'), 1);
}
}
......
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