Merge pull request #3482 from owncloud/fix_helper

use the recoveryPassword var instead of accessing the POST array
This commit is contained in:
Thomas Müller 2013-05-24 10:20:00 -07:00
commit ae9adcaf8c
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class Helper
} else { // get recovery key and check the password
$util = new \OCA\Encryption\Util( new \OC_FilesystemView( '/' ), \OCP\User::getUser() );
$return = $util->checkRecoveryPassword( $_POST['recoveryPassword'] );
$return = $util->checkRecoveryPassword( $recoveryPassword );
if ( $return ) {
\OC_Appconfig::setValue( 'files_encryption', 'recoveryAdminEnabled', 1 );
}