Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not redeclare auth_user_login upon failed login

  • Loading branch information...
commit f80964c99b5f167a3cdfe8053d656da626d3eb5c 1 parent 969da74
fiedorow authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 login/index_form.html
4 login/index_form.html
View
@@ -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">
Please sign in to comment.
Something went wrong with that request. Please try again.