Skip to content

Commit

Permalink
Fix warning when resetting user's password with masterkey encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 4, 2019
1 parent 471637d commit ba596e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/36523
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: suppress warning when resetting user password with masterkey encryption

When an admin wanted to reset user's password over the Users management page with masterkey encryption in place, a warning was displayed about data recovery not being available. The behavior has now been fixed.

https://github.com/owncloud/core/pull/36523
3 changes: 3 additions & 0 deletions settings/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ private function formatUserForIndex(IUser $user, array $userGroups = null) {
// user also has recovery mode enabled
$restorePossible = true;
}
} else {
// masterkey encryption is active
$restorePossible = true;
}
} else {
// recovery is possible if encryption is disabled (plain files are
Expand Down

0 comments on commit ba596e8

Please sign in to comment.