MDL-58899 auth: improve lang strings for confirmation failures in oauth

This commit is contained in:
Jake Dallimore
2017-05-12 11:45:36 +08:00
parent bcf69a655a
commit 5ffe41b6c5
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ if ($confirmed == AUTH_CONFIRM_ALREADY) {
echo $OUTPUT->footer();
exit;
} else {
print_error('invalidconfirmdata');
\core\notification::error(get_string('confirmationinvalid', 'auth_oauth2'));
}
redirect("$CFG->wwwroot/");
+1 -1
View File
@@ -72,7 +72,7 @@ if ($confirmed) {
echo $OUTPUT->footer();
exit;
} else {
print_error('invalidconfirmdata');
\core\notification::error(get_string('confirmationinvalid', 'auth_oauth2'));
}
redirect("$CFG->wwwroot/");
+1
View File
@@ -42,6 +42,7 @@ line at the top of your web browser window.
If you need help, please contact the site administrator,
{$a->admin}';
$string['confirmaccountemailsubject'] = '{$a}: account confirmation';
$string['confirmationinvalid'] = 'The confirmation link is either invalid, or has expired. Please start the login process again to generate a new confirmation email.';
$string['confirmationpending'] = 'This account is pending email confirmation.';
$string['confirmlinkedloginemail'] = 'Hi {$a->fullname},