diff options
author | brantje <brantje@gmail.com> | 2017-02-20 02:01:01 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2017-02-22 20:02:55 +0300 |
commit | fd8dcc6c1ca9e2a5effdff71ee37999d61a58b41 (patch) | |
tree | 2e2aacaff8de8f246da6cf1606fd4e8c3b9fcbb1 /appinfo | |
parent | 514cb569fba1ee7333f49d8adc4b7be6b52497b4 (diff) |
Add feature to request vault destructions
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/database.xml | 40 | ||||
-rw-r--r-- | appinfo/info.xml | 2 | ||||
-rw-r--r-- | appinfo/routes.php | 4 |
3 files changed, 45 insertions, 1 deletions
diff --git a/appinfo/database.xml b/appinfo/database.xml index 5df22b47..2770c002 100644 --- a/appinfo/database.xml +++ b/appinfo/database.xml @@ -548,4 +548,44 @@ </field> </declaration> </table> + <table> + <name>*dbprefix*passman_delete_vault_request</name> + <declaration> + <field> + <name>id</name> + <type>integer</type> + <notnull>true</notnull> + <autoincrement>true</autoincrement> + <unsigned>true</unsigned> + <primary>true</primary> + <length>8</length> + </field> + <field> + <name>vault_guid</name> + <type>text</type> + <notnull>true</notnull> + <length>64</length> + </field> + <field> + <name>reason</name> + <type>text</type> + <notnull>true</notnull> + <length>64</length> + </field> + <field> + <name>requested_by</name> + <type>text</type> + <notnull>false</notnull> + <length>64</length> + </field> + <field> + <name>created</name> + <type>integer</type> + <length>64</length> + <default>0</default> + <notnull>false</notnull> + <unsigned>true</unsigned> + </field> + </declaration> + </table> </database>
\ No newline at end of file diff --git a/appinfo/info.xml b/appinfo/info.xml index 88c5dc04..d5538e06 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -18,7 +18,7 @@ For an demo of this app visit [https://demo.passman.cc](https://demo.passman.cc) ]]></description> <licence>AGPL</licence> - <version>2.1.0</version> + <version>2.1.1</version> <author homepage="https://github.com/brantje">Sander Brand</author> <author homepage="https://github.com/animalillo">Marcos Zuriaga</author> <namespace>Passman</namespace> diff --git a/appinfo/routes.php b/appinfo/routes.php index 2886d210..d06f5fce 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -88,5 +88,9 @@ return [ //Admin routes ['name' => 'admin#searchUser', 'url' => '/admin/search', 'verb' => 'GET'], ['name' => 'admin#moveCredentials', 'url' => '/admin/move', 'verb' => 'POST'], + ['name' => 'admin#requestDeletion', 'url' => '/admin/request-deletion/{vault_guid}', 'verb' => 'POST'], + ['name' => 'admin#deleteRequestDeletion', 'url' => '/admin/request-deletion/{vault_guid}', 'verb' => 'DELETE'], + ['name' => 'admin#listRequests', 'url' => '/admin/delete-requests', 'verb' => 'GET'], + ['name' => 'admin#acceptRequestDeletion', 'url' => '/admin/accept-delete-request', 'verb' => 'POST'], ] ];
\ No newline at end of file |