diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 6e1aa4acd2c..2e01aab0667 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -1897,6 +1897,7 @@ $string['userdetails'] = 'User details'; $string['userfiles'] = 'User files'; $string['userlist'] = 'User list'; $string['username'] = 'Username'; +$string['usernameemail'] = 'Username / email'; $string['usernameemailmatch'] = 'The username and email address do not relate to the same user'; $string['usernameexists'] = 'This username already exists, choose another'; $string['usernamelowercase'] = 'Only lowercase letters allowed'; diff --git a/login/index_form.html b/login/index_form.html index 8b6f1a00ff9..bae2d7cf90d 100644 --- a/login/index_form.html +++ b/login/index_form.html @@ -10,6 +10,11 @@ if (!empty($CFG->loginpasswordautocomplete)) { } else { $autocomplete = ''; } +if (empty($CFG->authloginviaemail)) { + $strusername = get_string('username'); +} else { + $strusername = get_string('usernameemail'); +} ?>
@@ -30,7 +35,7 @@ if (!empty($CFG->loginpasswordautocomplete)) { ?>
>
-
+