summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/Users/Setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/lib/Users/Setup.php')
-rw-r--r--apps/encryption/lib/Users/Setup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/encryption/lib/Users/Setup.php b/apps/encryption/lib/Users/Setup.php
index 5406c4e51cc..e80435ac698 100644
--- a/apps/encryption/lib/Users/Setup.php
+++ b/apps/encryption/lib/Users/Setup.php
@@ -73,8 +73,8 @@ class Setup {
*/
public function setupUser($uid, $password) {
if (!$this->keyManager->userHasKeys($uid)) {
- return $this->keyManager->storeKeyPair($uid, $password,
- $this->crypt->createKeyPair());
+ $keyPair = $this->crypt->createKeyPair();
+ return is_array($keyPair) ? $this->keyManager->storeKeyPair($uid, $password, $keyPair) : false;
}
return true;
}