From: Björn Schießle Date: Tue, 18 Jun 2013 09:43:11 +0000 (+0200) Subject: fix lost password page, don't show checkbox is encryption is not enabled X-Git-Tag: v6.0.0alpha2~614 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f6a9e8fef6216538bbd839baf24eb655e2c57e4;p=nextcloud-server.git fix lost password page, don't show checkbox is encryption is not enabled --- 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 c082ee977da..43221649043 100644 --- a/core/lostpassword/templates/lostpassword.php +++ b/core/lostpassword/templates/lostpassword.php @@ -17,13 +17,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')); ?>

- -