Commit 0e13f432 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

Fixed teh login forms :)

parent 76b526e9
......@@ -309,9 +309,11 @@ function auth_check_password_change() {
require_once('form.php');
$form = array(
'name' => 'change_password',
'method' => 'post',
'elements' => array(
'name' => 'change_password',
'method' => 'post',
'plugintype' => 'auth',
'pluginname' => 'internal',
'elements' => array(
'passwords' => array(
'type' => 'fieldset',
'legend' => get_string('newpassword'),
......@@ -523,10 +525,12 @@ function auth_get_login_form() {
}
$form = array(
'name' => 'login',
'method' => 'post',
'action' => $action,
'elements' => $elements,
'name' => 'login',
'method' => 'post',
'action' => $action,
'plugintype' => 'auth',
'pluginname' => 'internal',
'elements' => $elements,
'iscancellable' => false
);
......
......@@ -35,10 +35,12 @@ require('init.php');
if (!$SESSION->is_logged_in()) {
require_once('form.php');
$loginform = get_login_form_js(form(array(
'name' => 'login',
'renderer' => 'div',
'submit' => false,
'elements' => array(
'name' => 'login',
'renderer' => 'div',
'submit' => false,
'plugintype' => 'auth',
'pluginname' => 'internal',
'elements' => array(
'login' => array(
'type' => 'fieldset',
'legend' => get_string('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