add method to check if users private/public key exists

remotes/origin/ldap_group_count
Bjoern Schiessle 13 years ago
parent 4dd84b3627
commit 85467b973a
  1. 17
      apps/files_encryption/lib/util.php

@ -101,15 +101,24 @@ class Util {
or !$this->view->file_exists($this->publicKeyPath)
or !$this->view->file_exists($this->privateKeyPath)
) {
return false;
} else {
return true;
}
}
/**
* @breif check if the users private & public key exists
* @return boolean
*/
public function userKeysExists() {
if (
$this->view->file_exists($this->privateKeyPath) &&
$this->view->file_exists($this->publicKeyPath)) {
return true;
} else {
return false;
}
}
/**

Loading…
Cancel
Save