Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appinfo/database.xml6
-rw-r--r--appinfo/info.xml2
-rw-r--r--lib/Db/CredentialRevision.php4
3 files changed, 11 insertions, 1 deletions
diff --git a/appinfo/database.xml b/appinfo/database.xml
index 85916172..da028f2d 100644
--- a/appinfo/database.xml
+++ b/appinfo/database.xml
@@ -366,6 +366,12 @@
<type>clob</type>
<notnull>true</notnull>
</field>
+ <field>
+ <name>edited_by</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>64</length>
+ </field>
<index>
<name>passman_revision_id_index</name>
<field>
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 9f3478b0..0b82f3f5 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -5,7 +5,7 @@
<description>A password manager for Nextcloud</description>
<licence>AGPL</licence>
<author>Sander Brand</author>
- <version>1.0.2.19</version>
+ <version>1.0.2.20</version>
<namespace>Passman</namespace>
<category>other</category>
<website>https://github.com/nextcloud/passman/</website>
diff --git a/lib/Db/CredentialRevision.php b/lib/Db/CredentialRevision.php
index 79dca45d..19619eac 100644
--- a/lib/Db/CredentialRevision.php
+++ b/lib/Db/CredentialRevision.php
@@ -26,6 +26,8 @@ use \OCP\AppFramework\Db\Entity;
* @method integer getCreated()
* @method void setCredentialData(string $value)
* @method string getCredentialData()
+ * @method void setEditedBy(string $value)
+ * @method string getEditedBy()
*/
class CredentialRevision extends Entity implements \JsonSerializable {
@@ -36,6 +38,7 @@ class CredentialRevision extends Entity implements \JsonSerializable {
protected $userId;
protected $created;
protected $credentialData;
+ protected $editedBy;
public function __construct() {
@@ -53,6 +56,7 @@ class CredentialRevision extends Entity implements \JsonSerializable {
'guid' => $this->getGuid(),
'created' => $this->getCreated(),
'credential_data' => unserialize(base64_decode($this->getCredentialData())),
+ 'edited_by' => $this->getEditedBy(),
];
}
} \ No newline at end of file