Commit 4f21e605 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Hopefully allow penny to log in

parent 69ec5036
......@@ -583,8 +583,9 @@ function login_submit($values) {
}
// Check if the user's account has become inactive
if ($oldlastlogin > 0
&& $oldlastlogin + get_field('institution', 'defaultaccountinactiveexpire', 'name', $userdata->institution) < time()) {
$inactivetime = get_field('institution', 'defaultaccountinactiveexpire', 'name', $userdata->institution);
if ($inactivetime && $oldlastlogin > 0
&& $oldlastlogin + $inactivetime < time()) {
die_info(get_string('accountinactive'));
}
......
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