Skip to content

Commit

Permalink
Add check for empty email value in Shibboleth::authenticate() (#3950)
Browse files Browse the repository at this point in the history
  • Loading branch information
dltj authored Sep 18, 2024
1 parent 027752a commit 1cd52ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/Shibboleth.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function authenticate($request)
foreach ($this->attribsToCheck as $attribute) {
if (isset($shib[$attribute])) {
$value = $this->getAttribute($request, $shib[$attribute]);
if ($attribute == 'email') {
if ($attribute == 'email' && !empty($value)) {
$userService->updateUserEmail($user, $value);
} elseif (
$attribute == 'cat_username' && isset($shib['prefix'])
Expand Down

0 comments on commit 1cd52ed

Please sign in to comment.