only check for recovery key if someone else than the user wants to change the password
This commit is contained in:
parent
7fc5151d95
commit
b25ab94a08
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ if (is_null($userstatus)) {
|
||||||
OC_JSON::error(array('data' => array('message' => 'Authentication error')));
|
OC_JSON::error(array('data' => array('message' => 'Authentication error')));
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
if (\OCP\App::isEnabled('files_encryption')) {
|
if (\OCP\App::isEnabled('files_encryption') && $userstatus !== 'user') {
|
||||||
$util = new \OCA\Encryption\Util(new \OC_FilesystemView('/'), $username);
|
$util = new \OCA\Encryption\Util(new \OC_FilesystemView('/'), $username);
|
||||||
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
|
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
|
||||||
$recoveryEnabledForUser = $util->recoveryEnabledForUser();
|
$recoveryEnabledForUser = $util->recoveryEnabledForUser();
|
||||||
|
|
Loading…
Reference in a new issue