Hello, I tried both of your solutions on my login.php and index php (I just recently came to administer this Moodle site), and none of them work.
Ex 1:
if (optional_param('errorcode', 0, PARAM_INT) == 3) {
echo '<div class="error_msg">The Username and/or Password entered is invalid, please try again.</div></br>';
}
Ex 2:
if ($_GET["errorcode"] == 3){
echo '<div class="error_msg">The Username and/or Password entered is invalid, please try again.</div></br>';
}
Ex 3:
if ($errorcode == 3) {
echo '<div class="error_msg">The Username and/or Password entered is invalid, please try again.</div></br>';
}
However, none of them works
I think I'm doing something wrong because I'm not using any customized auth php script, and it should reference the default login process. Even more, I found there and in the moodle.php the appropriate reference to the message it should display in the event of an error. So, what is that I'm missing?