Skip to content

Commit

Permalink
Set user verified upon reset of password
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Aug 26, 2019
1 parent 910a25d commit 43c47f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/User/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ protected function doPasswordReset( UserResetPasswordModel &$model, &$data ) {
return self::RET_FAILURE;
}

$model->user->setVerified();

$model->error = false;
return self::RET_SUCCESS;
}
Expand Down

0 comments on commit 43c47f7

Please sign in to comment.