Skip to content
Snippets Groups Projects
Commit ae9adcaf authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #3482 from owncloud/fix_helper

use the recoveryPassword var instead of accessing the POST array
parents 39603b19 f56802a4
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ class Helper ...@@ -146,7 +146,7 @@ class Helper
} else { // get recovery key and check the password } else { // get recovery key and check the password
$util = new \OCA\Encryption\Util( new \OC_FilesystemView( '/' ), \OCP\User::getUser() ); $util = new \OCA\Encryption\Util( new \OC_FilesystemView( '/' ), \OCP\User::getUser() );
$return = $util->checkRecoveryPassword( $_POST['recoveryPassword'] ); $return = $util->checkRecoveryPassword( $recoveryPassword );
if ( $return ) { if ( $return ) {
\OC_Appconfig::setValue( 'files_encryption', 'recoveryAdminEnabled', 1 ); \OC_Appconfig::setValue( 'files_encryption', 'recoveryAdminEnabled', 1 );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment