diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-07-27 16:52:28 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-10 14:27:35 +0200 |
commit | bae5be3dc14085a5061cd38e74c07453ed19b66b (patch) | |
tree | cf835b8139875131dcb1242ea37f7d29a862f9c7 /lib/private/Security | |
parent | 9524badccc6fd1e9d423f8dd8316b32ea576863b (diff) | |
download | nextcloud-server-bae5be3dc14085a5061cd38e74c07453ed19b66b.tar.gz nextcloud-server-bae5be3dc14085a5061cd38e74c07453ed19b66b.zip |
add prefix to user and system keys to avoid name collisions
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/private/Security')
-rw-r--r-- | lib/private/Security/IdentityProof/Manager.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Security/IdentityProof/Manager.php b/lib/private/Security/IdentityProof/Manager.php index a8c204c84b9..c5134e12b8d 100644 --- a/lib/private/Security/IdentityProof/Manager.php +++ b/lib/private/Security/IdentityProof/Manager.php @@ -121,7 +121,8 @@ class Manager { * @return Key */ public function getKey(IUser $user) { - return $this->retrieveKey($user->getUID()); + $uid = $user->getUID(); + return $this->retrieveKey('user-' . $uid); } /** @@ -135,7 +136,7 @@ class Manager { if ($instanceId === null) { throw new \RuntimeException('no instance id!'); } - return $this->retrieveKey($instanceId); + return $this->retrieveKey('system-' . $instanceId); } |