Commit 62b89258 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't let the admin set session times less than 1 minute

parent d3de3999
......@@ -102,6 +102,7 @@ $siteoptionform = array(
'title' => get_string('sessionlifetime', 'admin'),
'description' => get_string('sessionlifetimedescription', 'admin'),
'defaultvalue' => get_config('session_timeout') / 60,
'rules' => array('integer' => true, 'minvalue' => 1, 'maxvalue' => 10000000),
'help' => true,
),
'allowpublicviews' => array(
......
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