diff --git a/appinfo/database.xml b/appinfo/database.xml
index 003cb408..85916172 100644
--- a/appinfo/database.xml
+++ b/appinfo/database.xml
@@ -234,12 +234,8 @@
false
- is_shared
- integer
- 0
- 1
- false
- true
+ shared_key
+ clob
passman_credential_id_index
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 87748d26..9f3478b0 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -5,7 +5,7 @@
A password manager for Nextcloud
AGPL
Sander Brand
- 1.0.2.18
+ 1.0.2.19
Passman
other
https://github.com/nextcloud/passman/
diff --git a/controller/credentialcontroller.php b/controller/credentialcontroller.php
index e85c64a9..435e58b2 100644
--- a/controller/credentialcontroller.php
+++ b/controller/credentialcontroller.php
@@ -93,7 +93,7 @@ class CredentialController extends ApiController {
$credential_id, $custom_fields, $delete_time,
$description, $email, $expire_time, $favicon, $files, $guid,
$hidden, $label, $otp, $password, $renew_interval,
- $tags, $url, $username, $vault_id, $revision_created, $is_shared) {
+ $tags, $url, $username, $vault_id, $revision_created, $shared_key) {
$credential = array(
'credential_id' => $credential_id,
'guid' => $guid,
@@ -116,7 +116,7 @@ class CredentialController extends ApiController {
'delete_time' => $delete_time,
'hidden' => $hidden,
'otp' => $otp,
- 'is_shared' => $is_shared,
+ 'shared_key' => $shared_key,
);
diff --git a/lib/Db/Credential.php b/lib/Db/Credential.php
index 061b2afe..8dc87692 100644
--- a/lib/Db/Credential.php
+++ b/lib/Db/Credential.php
@@ -55,8 +55,8 @@ use \OCP\AppFramework\Db\Entity;
* @method string getOtp()
* @method void setHidden(bool $value)
* @method string getHidden()
- * @method void setIsShared(integer $value)
- * @method string getIsShared()
+ * @method void setSharedkey(string $value)
+ * @method string getSharedKey()
@@ -87,7 +87,7 @@ class Credential extends Entity implements \JsonSerializable{
protected $customFields;
protected $otp;
protected $hidden;
- protected $isShared;
+ protected $sharedKey;
public function __construct() {
// add types in constructor
@@ -129,7 +129,7 @@ class Credential extends Entity implements \JsonSerializable{
'custom_fields' => $this->getCustomFields(),
'otp' => $this->getOtp(),
'hidden' => $this->getHidden(),
- 'is_shared' => $this->getIsShared(),
+ 'shared_key' => $this->getSharedKey(),
];
}
}
\ No newline at end of file
diff --git a/lib/Db/CredentialMapper.php b/lib/Db/CredentialMapper.php
index ac369b37..18cad95d 100644
--- a/lib/Db/CredentialMapper.php
+++ b/lib/Db/CredentialMapper.php
@@ -81,7 +81,7 @@ class CredentialMapper extends Mapper {
$credential->setCustomFields($raw_credential['custom_fields']);
$credential->setOtp($raw_credential['otp']);
$credential->setHidden($raw_credential['hidden']);
- $credential->setIsShared($raw_credential['is_shared']);
+ $credential->setSharedkey($raw_credential['is_shared']);
return parent::insert($credential);
}
@@ -114,6 +114,7 @@ class CredentialMapper extends Mapper {
$credential->setOtp($raw_credential['otp']);
$credential->setHidden($raw_credential['hidden']);
$credential->setDeleteTime($raw_credential['delete_time']);
+ $credential->setSharedkey($raw_credential['is_shared']);
return parent::update($credential);
}