Commit 784dbf9d authored by Aaron Wells's avatar Aaron Wells Committed by Robert Lyon

Remove unnecessary cached form from the session

Bug 1495200 & Bug 1496681

behatnotneeded: Well, we could test this, but it would
require a 60-second wait for the session to timeout (since
the least you can set the session timeout via the UI
is 1 minute)

Change-Id: Ia5c861c16b6c893ada9d5eb2111f0b6a9aee49ad
(cherry picked from commit aee374c0)
parent 78074cce
......@@ -503,7 +503,6 @@ function auth_setup () {
// specify login data immediately
require_once('pieforms/pieform.php');
$form = new Pieform(auth_get_login_form());
$SESSION->loginform = $form;
if ($USER->is_logged_in()) {
return;
}
......@@ -1941,9 +1940,6 @@ function auth_generate_login_form() {
if (!get_config('installed')) {
return;
}
else if ($SESSION->loginform) {
return get_login_form_js($SESSION->loginform->build());
}
$elements = auth_get_login_form_elements();
$loginform = get_login_form_js(pieform(array(
'name' => 'login',
......
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