Skip to content

Commit

Permalink
MDL-50099 auth: less verbose account confirmed message
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy authored and danpoltawski committed May 5, 2015
1 parent db200a8 commit 4f8b6d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions auth/email/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ function user_confirm($username, $confirmsecret) {
$user = get_complete_user_data('username', $username);

if (!empty($user)) {
if ($user->confirmed) {
return AUTH_CONFIRM_ALREADY;

} else if ($user->auth != $this->authtype) {
if ($user->auth != $this->authtype) {
return AUTH_CONFIRM_ERROR;

} else if ($user->secret == $confirmsecret && $user->confirmed) {
return AUTH_CONFIRM_ALREADY;

} else if ($user->secret == $confirmsecret) { // They have provided the secret key to get in
$DB->set_field("user", "confirmed", 1, array("id"=>$user->id));
return AUTH_CONFIRM_OK;
Expand Down
8 changes: 4 additions & 4 deletions auth/ldap/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,12 +607,12 @@ function user_confirm($username, $confirmsecret) {
$user = get_complete_user_data('username', $username);

if (!empty($user)) {
if ($user->confirmed) {
return AUTH_CONFIRM_ALREADY;

} else if ($user->auth != $this->authtype) {
if ($user->auth != $this->authtype) {
return AUTH_CONFIRM_ERROR;

} else if ($user->secret == $confirmsecret && $user->confirmed) {
return AUTH_CONFIRM_ALREADY;

} else if ($user->secret == $confirmsecret) { // They have provided the secret key to get in
if (!$this->user_activate($username)) {
return AUTH_CONFIRM_FAIL;
Expand Down
1 change: 0 additions & 1 deletion login/confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
$PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
echo $OUTPUT->box_start('generalbox centerpara boxwidthnormal boxaligncenter');
echo "<h3>".get_string("thanks").", ". fullname($user) . "</h3>\n";
echo "<p>".get_string("alreadyconfirmed")."</p>\n";
echo $OUTPUT->single_button("$CFG->wwwroot/course/", get_string('courses'));
echo $OUTPUT->box_end();
Expand Down

0 comments on commit 4f8b6d5

Please sign in to comment.