From 2ee14c47347f9300e8042097f0ec7cbcbfcc4981 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 16 Sep 2014 15:16:27 +0200 Subject: create backup from all keys before recovery --- apps/files_encryption/hooks/hooks.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/files_encryption/hooks') 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 -- cgit v1.2.3