diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-09-16 15:16:27 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-09-19 11:47:18 +0200 |
commit | 2ee14c47347f9300e8042097f0ec7cbcbfcc4981 (patch) | |
tree | 60a51a1a8e9d8d39083295cd6ed6689d6a765079 /apps/files_encryption/hooks/hooks.php | |
parent | 06eb3b62c6fac31e3d816746d9945c7c0a889323 (diff) | |
download | nextcloud-server-2ee14c47347f9300e8042097f0ec7cbcbfcc4981.tar.gz nextcloud-server-2ee14c47347f9300e8042097f0ec7cbcbfcc4981.zip |
create backup from all keys before recovery
Diffstat (limited to 'apps/files_encryption/hooks/hooks.php')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index b1e7e8c52a5..ccea51f91f7 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -228,6 +228,9 @@ class Hooks { || !$util->userKeysExists()
|| !$view->file_exists($user . '/files')) {
+ // backup old keys
+ $util->backupAllKeys('recovery');
+
$newUserPassword = $params['password'];
// make sure that the users home is mounted
|