diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-04-09 10:45:50 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-04-09 10:45:50 +0200 |
commit | d869f8212b3bf9cb50024bb137a3f42f2c1eac8b (patch) | |
tree | eb2007bbf47ed2817cc39f861c8e9125c7017ad6 | |
parent | ba52f6f8fc0d88000332e9e64c48a56c526823d9 (diff) | |
download | nextcloud-server-d869f8212b3bf9cb50024bb137a3f42f2c1eac8b.tar.gz nextcloud-server-d869f8212b3bf9cb50024bb137a3f42f2c1eac8b.zip |
Enforce string as passed type
-rw-r--r-- | apps/encryption/controller/recoverycontroller.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/encryption/controller/recoverycontroller.php b/apps/encryption/controller/recoverycontroller.php index 3d0e39d7b93..9e5692f76fa 100644 --- a/apps/encryption/controller/recoverycontroller.php +++ b/apps/encryption/controller/recoverycontroller.php @@ -2,6 +2,7 @@ /** * @author Björn Schießle <schiessle@owncloud.com> * @author Clark Tomlinson <fallen013@gmail.com> + * @author Lukas Reschke <lukas@owncloud.com> * * @copyright Copyright (c) 2015, ownCloud, Inc. * @license AGPL-3.0 @@ -28,7 +29,6 @@ use OCP\AppFramework\Controller; use OCP\IConfig; use OCP\IL10N; use OCP\IRequest; -use OCP\JSON; use OCP\AppFramework\Http\DataResponse; class RecoveryController extends Controller { @@ -59,6 +59,12 @@ class RecoveryController extends Controller { $this->recovery = $recovery; } + /** + * @param string $recoveryPassword + * @param string $confirmPassword + * @param string $adminEnableRecovery + * @return DataResponse + */ public function adminRecovery($recoveryPassword, $confirmPassword, $adminEnableRecovery) { // Check if both passwords are the same if (empty($recoveryPassword)) { @@ -89,6 +95,12 @@ class RecoveryController extends Controller { } } + /** + * @param string $newPassword + * @param string $oldPassword + * @param string $confirmPassword + * @return DataResponse + */ public function changeRecoveryPassword($newPassword, $oldPassword, $confirmPassword) { //check if both passwords are the same if (empty($oldPassword)) { |