diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-08-09 14:25:09 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-08-09 14:25:09 +0200 |
commit | a969c23e59e26f2d82a1f8626444a59ae003c30e (patch) | |
tree | fa451b00e444d5b8394148d1ea69055f60b33fd5 /apps/files_encryption/lib | |
parent | 800942ece74ac336c4a9213228f14406d7e494f7 (diff) | |
download | nextcloud-server-a969c23e59e26f2d82a1f8626444a59ae003c30e.tar.gz nextcloud-server-a969c23e59e26f2d82a1f8626444a59ae003c30e.zip |
disable admin choice of encryption mode once a decision was taken
Diffstat (limited to 'apps/files_encryption/lib')
-rw-r--r-- | apps/files_encryption/lib/keymanager.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_encryption/lib/keymanager.php b/apps/files_encryption/lib/keymanager.php index 4c30c163957..62c5082a2f7 100644 --- a/apps/files_encryption/lib/keymanager.php +++ b/apps/files_encryption/lib/keymanager.php @@ -199,6 +199,13 @@ class Keymanager { return $result;
}
+ /**
+ * @brief change password of private encryption key
+ *
+ * @param string $oldpasswd old password
+ * @param string $newpasswd new password
+ * @return bool true/false
+ */
public static function changePasswd($oldpasswd, $newpasswd) {
if ( \OCP\User::checkPassword(\OCP\User::getUser(), $newpasswd) ) {
return Crypt::changekeypasscode($oldpasswd, $newpasswd);
|