Browse files

Do not redeclare auth_user_login upon failed login

  • Loading branch information...
1 parent 969da74 commit f80964c99b5f167a3cdfe8053d656da626d3eb5c fiedorow committed Sep 9, 2004
Showing with 3 additions and 1 deletion.
  1. +3 −1 login/index_form.html
View
4 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') ){
?>
<div align="center">

0 comments on commit f80964c

Please sign in to comment.