diff --git a/lib/Keygen.class.php b/lib/Keygen.class.php index 317eed0..441381a 100644 --- a/lib/Keygen.class.php +++ b/lib/Keygen.class.php @@ -43,6 +43,12 @@ class Keygen { $pepper = str_replace('"', '\"', $pepper); $userPubkey = $this->getG1Pub($salt, $pepper); + + if (!file_exists($this->pubsecDir)) { + + mkdir($this->pubsecDir, 0777, true); + + } $cmd = $this->keygenPath; $cmd .= ' -f pubsec';