diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-31 17:57:18 +0400 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-31 17:57:18 +0400 |
commit | e9d1ea712c5986f427fb8fbbcc934d119a069f5c (patch) | |
tree | ac9b8c21e0ed6fde5ca2b435dc0bf4c9262c6e12 /apps/files_encryption/hooks | |
parent | 2e3bfdb12c5789e1e384777a7906c2c6a6ecef56 (diff) |
allow the user to login but do not allow upload and show error message on the web
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 639d5769154..c52d739eaa8 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -62,13 +62,13 @@ class Hooks { if(is_resource($res)) {
$sslInfo = openssl_pkey_get_details($res);
if(!isset($sslInfo['key'])) {
- $privateKey = null;
+ $privateKey = false;
}
} else {
- $privateKey = null;
+ $privateKey = false;
}
- if($privateKey === null) {
+ if($privateKey === false) {
\OCP\Util::writeLog('Encryption library', 'Private key for user "' . $params['uid'] . '" is not valid! Maybe the user password was changed from outside if so please change it back to gain access', \OCP\Util::ERROR);
}
|