From 96983c2ad0d382de1e643573e320f3d39c6fc9e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 18 Jun 2013 11:43:11 +0200 Subject: [PATCH] fix lost password page, don't show checkbox is encryption is not enabled --- core/lostpassword/controller.php | 8 +++++--- core/lostpassword/templates/lostpassword.php | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/lostpassword/controller.php b/core/lostpassword/controller.php index 9377de5d39a..2f996365219 100644 --- a/core/lostpassword/controller.php +++ b/core/lostpassword/controller.php @@ -8,11 +8,11 @@ class OC_Core_LostPassword_Controller { protected static function displayLostPasswordPage($error, $requested) { - $encrypted = OC_App::isEnabled('files_encryption'); + $isEncrypted = OC_App::isEnabled('files_encryption'); OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => $error, 'requested' => $requested, - 'encrypted' => $encrypted)); + 'isEncrypted' => $isEncrypted)); } protected static function displayResetPasswordPage($success, $args) { @@ -33,7 +33,9 @@ class OC_Core_LostPassword_Controller { public static function sendEmail($args) { - if(isset($_POST['noEncryption']) || isset($_POST['continue'])) { + $isEncrypted = OC_App::isEnabled('files_encryption'); + + if(!$isEncrypted || isset($_POST['continue'])) { $continue = true; } else { $continue = false; diff --git a/core/lostpassword/templates/lostpassword.php b/core/lostpassword/templates/lostpassword.php index c9c9787e9aa..48c95379295 100644 --- a/core/lostpassword/templates/lostpassword.php +++ b/core/lostpassword/templates/lostpassword.php @@ -12,13 +12,11 @@ - +

t('Your files seems to be encrypted. If you didn\'t have enabled the recovery key there will be no way to get your data back once the password was resetted. If you are not sure what to do, please contact your administrator first before continue. Do you really want to continue?')); ?>
t('Yes, I really want to reset my password now')); ?>

- -

-- 2.39.5