diff options
author | Sam Tuke <samtuke@owncloud.com> | 2013-01-24 18:37:34 +0000 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2013-01-24 18:37:34 +0000 |
commit | 094213e23171c274e0c88fab02ad2c23d37217ce (patch) | |
tree | d6139e5e5244321494929b1931d36fcc7a959eaf /apps/files_encryption/appinfo | |
parent | 59ca312263d358c95b950266c678c71bf97716f3 (diff) | |
download | nextcloud-server-094213e23171c274e0c88fab02ad2c23d37217ce.tar.gz nextcloud-server-094213e23171c274e0c88fab02ad2c23d37217ce.zip |
Fixed many coding guidelines issues
Continued work on upgrade path via login hook listener
New spec file with notes
Diffstat (limited to 'apps/files_encryption/appinfo')
-rw-r--r-- | apps/files_encryption/appinfo/app.php | 16 | ||||
-rw-r--r-- | apps/files_encryption/appinfo/spec.txt | 7 | ||||
-rw-r--r-- | apps/files_encryption/appinfo/version | 2 |
3 files changed, 16 insertions, 9 deletions
diff --git a/apps/files_encryption/appinfo/app.php b/apps/files_encryption/appinfo/app.php index fa293f45128..20045f34b08 100644 --- a/apps/files_encryption/appinfo/app.php +++ b/apps/files_encryption/appinfo/app.php @@ -11,13 +11,13 @@ OC::$CLASSPATH['OCA\Encryption\Session'] = 'apps/files_encryption/lib/session.ph OC_FileProxy::register( new OCA\Encryption\Proxy() ); // User-related hooks -OCP\Util::connectHook( 'OC_User','post_login', 'OCA\Encryption\Hooks', 'login' ); -OCP\Util::connectHook( 'OC_User','post_setPassword','OCA\Encryption\Hooks' ,'setPassphrase' ); +OCP\Util::connectHook( 'OC_User', 'post_login', 'OCA\Encryption\Hooks', 'login' ); +OCP\Util::connectHook( 'OC_User', 'post_setPassword','OCA\Encryption\Hooks', 'setPassphrase' ); // Sharing-related hooks -OCP\Util::connectHook( 'OCP\Share','post_shared','OCA\Encryption\Hooks' ,'postShared' ); -OCP\Util::connectHook( 'OCP\Share','pre_unshare','OCA\Encryption\Hooks' ,'preUnshare' ); -OCP\Util::connectHook( 'OCP\Share','pre_unshareAll','OCA\Encryption\Hooks' ,'preUnshareAll' ); +OCP\Util::connectHook( 'OCP\Share', 'post_shared', 'OCA\Encryption\Hooks', 'postShared' ); +OCP\Util::connectHook( 'OCP\Share', 'pre_unshare', 'OCA\Encryption\Hooks', 'preUnshare' ); +OCP\Util::connectHook( 'OCP\Share', 'pre_unshareAll', 'OCA\Encryption\Hooks', 'preUnshareAll' ); // Webdav-related hooks OCP\Util::connectHook( 'OC_Webdav_Properties', 'update', 'OCA\Encryption\Hooks', 'updateKeyfile' ); @@ -27,9 +27,9 @@ stream_wrapper_register( 'crypt', 'OCA\Encryption\Stream' ); $session = new OCA\Encryption\Session(); if ( -! $session->getPrivateKey( \OCP\USER::getUser() ) -&& OCP\User::isLoggedIn() -&& OCA\Encryption\Crypt::mode() == 'server' + ! $session->getPrivateKey( \OCP\USER::getUser() ) + && OCP\User::isLoggedIn() + && OCA\Encryption\Crypt::mode() == 'server' ) { // Force the user to log-in again if the encryption key isn't unlocked diff --git a/apps/files_encryption/appinfo/spec.txt b/apps/files_encryption/appinfo/spec.txt new file mode 100644 index 00000000000..ab248be64d5 --- /dev/null +++ b/apps/files_encryption/appinfo/spec.txt @@ -0,0 +1,7 @@ +Notes +----- + +- The user passphrase is required in order to set up or upgrade the app. New + keypair generation, and the re-encryption of legacy encrypted files requires + it. Therefore an appinfo/update.php script cannot be used, and upgrade logic + is handled in the login hook listener.
\ No newline at end of file diff --git a/apps/files_encryption/appinfo/version b/apps/files_encryption/appinfo/version index 7dff5b89211..1d71ef97443 100644 --- a/apps/files_encryption/appinfo/version +++ b/apps/files_encryption/appinfo/version @@ -1 +1 @@ -0.2.1
\ No newline at end of file +0.3
\ No newline at end of file |