userRecovery() was replaced by setRecoveryForUser()

This commit is contained in:
Bjoern Schiessle 2015-04-02 17:36:51 +02:00 committed by Thomas Müller
parent 69e95531f8
commit b9e4e61759
2 changed files with 0 additions and 17 deletions

View File

@ -29,11 +29,6 @@ namespace OCA\Encryption\AppInfo;
'url' => '/ajax/adminRecovery',
'verb' => 'POST'
],
[
'name' => 'Recovery#userRecovery',
'url' => '/ajax/userRecovery',
'verb' => 'POST'
],
[
'name' => 'Recovery#changeRecoveryPassword',
'url' => '/ajax/changeRecoveryPassword',

View File

@ -130,18 +130,6 @@ class RecoveryController extends Controller {
}
}
public function userRecovery($userEnableRecovery) {
if (isset($userEnableRecovery) && ($userEnableRecovery === '0' || $userEnableRecovery === '1')) {
$userId = $this->user->getUID();
if ($userEnableRecovery === '1') {
// Todo xxx figure out if we need keyid's here or what.
return $this->recovery->addRecoveryKeys();
}
// Todo xxx see :98
return $this->recovery->removeRecoveryKeys();
}
}
/**
* @NoAdminRequired
*/