Merge pull request #116 from Dezinger/bugfix_type_convertion

#115 Convert client_id to string because pgsql fail with type convertion
This commit is contained in:
Antonio Ramirez
2017-11-24 08:28:46 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# CHANGELOG
## 1.1.1 - Work in progress
- Bug #115: Convert client_id to string because pgsql fail with type convertion (Dezinger)
- Bug #119: Security fix: add AccessControl to RuleController (Dezinger)
- Enh #120: 2FA i18n russian translation (Dezinger)
- Bug #111: Fix migration for PostgreSQL DBMS (MKiselev)

View File

@ -26,7 +26,7 @@ class SocialNetworkAccountQuery extends ActiveQuery
return $this->andWhere(
[
'provider' => $client->getId(),
'client_id' => $client->getUserAttributes()['id'],
'client_id' => (string)$client->getUserAttributes()['id'],
]
);
}