userRecovery() was replaced by setRecoveryForUser()
This commit is contained in:
parent
69e95531f8
commit
b9e4e61759
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue