Skip to content

Commit

Permalink
MDL-58899 auth: improve lang strings for confirmation failures in oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed May 12, 2017
1 parent bcf69a6 commit 5ffe41b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auth/oauth2/confirm-account.php
Expand Up @@ -85,7 +85,7 @@
echo $OUTPUT->footer();
exit;
} else {
print_error('invalidconfirmdata');
\core\notification::error(get_string('confirmationinvalid', 'auth_oauth2'));
}

redirect("$CFG->wwwroot/");
2 changes: 1 addition & 1 deletion auth/oauth2/confirm-linkedlogin.php
Expand Up @@ -72,7 +72,7 @@
echo $OUTPUT->footer();
exit;
} else {
print_error('invalidconfirmdata');
\core\notification::error(get_string('confirmationinvalid', 'auth_oauth2'));
}

redirect("$CFG->wwwroot/");
1 change: 1 addition & 0 deletions auth/oauth2/lang/en/auth_oauth2.php
Expand Up @@ -42,6 +42,7 @@
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},
Expand Down

0 comments on commit 5ffe41b

Please sign in to comment.