Commit 0e104d3e authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Revert not showing re-login form if the page is public - it doesn't give

very intuitive behaviour.
parent 03fcd5f5
......@@ -220,11 +220,9 @@ function auth_setup () {
log_debug('session timed out');
$SESSION->logout();
$SESSION->add_info_msg(get_string('sessiontimedout'));
if (!defined('PUBLIC')) {
auth_draw_login_page();
exit;
}
}
else {
// There is no session, so we check to see if one needs to be started.
// First, check if the page is public or the site is configured to be public.
......
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