From a8f27ff58d28fa2e398fbb15cab23ba33f4b947f Mon Sep 17 00:00:00 2001 From: fiedorow Date: Thu, 9 Sep 2004 12:37:34 +0000 Subject: [PATCH] Do not redeclare auth_user_login upon login failure --- login/index_form.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/login/index_form.html b/login/index_form.html index d06e5a96f1..d53ea748b9 100644 --- a/login/index_form.html +++ b/login/index_form.html @@ -94,7 +94,9 @@ break; default: echo format_text($CFG->auth_instructions); - require_once("../auth/$CFG->auth/lib.php"); + if (!function_exists('auth_user_login')) { + require_once("../auth/$CFG->auth/lib.php"); + } if (!empty($CFG->auth_user_create) and function_exists('auth_user_create') ){ ?>
-- 2.39.5