Commit 7eb775a8 authored by Richard Mansfield's avatar Richard Mansfield

Add local logout hook

Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent b738b056
......@@ -383,6 +383,10 @@ function auth_setup () {
log_debug("Strange: user " . $USER->get('username') . " had no authinstance set in their session");
}
if (function_exists('local_logout')) {
local_logout();
}
$USER->logout();
$SESSION->add_ok_msg(get_string('loggedoutok'));
redirect();
......
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