Skip to content

Commit

Permalink
Fix resending of email change confirmation request. (vufind-org#4018)
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Oct 18, 2024
1 parent 1fffe7d commit c832fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/VuFind/src/VuFind/Controller/MyResearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,8 @@ public function emailNotVerifiedAction()
if ($this->params()->fromQuery('reverify')) {
$change = false;
// Case 1: new user:
$user = $this->getDbService(UserServiceInterface::class)
->getUserByUsername($this->getUserVerificationContainer()->user);
$username = $this->getUserVerificationContainer()->user;
$user = $username ? $this->getDbService(UserServiceInterface::class)->getUserByUsername($username) : null;
// Case 2: pending email change:
if (!$user) {
$user = $this->getUser();
Expand Down

0 comments on commit c832fa5

Please sign in to comment.