Skip to content

Commit

Permalink
Don't overwrite session 'loa' from non-existent database entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencegf committed Apr 1, 2020
1 parent ca767a5 commit 11342d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Service/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,9 @@ public static function saveUserToDataStore(...$args)
// returned by the DBService, e.g., in case attributes were set
// previously but not this time. Skip 'idp' since the PHP code
// transforms 'https://' to 'http://' for database consistency.
// Also skip 'loa' since that is not saved in the database.
foreach (DBService::$user_attrs as $value) {
if ($value != 'idp') {
if (($value != 'idp') && ($value != 'loa')) {
static::setSessionVar($value, $dbs->$value);
}
}
Expand Down

0 comments on commit 11342d7

Please sign in to comment.