Skip to content
Snippets Groups Projects
Commit 0ba9802b authored by Sonia Zorba's avatar Sonia Zorba
Browse files

'Occult PI' bugfix

parent 81ee096a
No related branches found
No related tags found
No related merge requests found
...@@ -22,10 +22,10 @@ class ShibbolethLogin extends LoginHandler { ...@@ -22,10 +22,10 @@ class ShibbolethLogin extends LoginHandler {
return $this->onIdentityDataReceived($eppn, function($identity) use($eppn) { return $this->onIdentityDataReceived($eppn, function($identity) use($eppn) {
$identity->email = $_SERVER['mail']; $identity->email = $_SERVER['mail'];
if (isset($_SERVER['givenName'])) { if (isset($_SERVER['givenName']) && $_SERVER['givenName'] !== 'N/A') {
$identity->name = $_SERVER['givenName']; $identity->name = $_SERVER['givenName'];
} }
if (isset($_SERVER['sn'])) { if (isset($_SERVER['sn']) && $_SERVER['sn'] !== 'N/A') {
$identity->surname = $_SERVER['sn']; $identity->surname = $_SERVER['sn'];
} }
$identity->eppn = $eppn; $identity->eppn = $eppn;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment