|
|
@ -1100,11 +1100,15 @@ class enigma_ui
|
|
|
|
|
|
|
|
|
|
|
|
if ($mode && ($status instanceof enigma_error)) {
|
|
|
|
if ($mode && ($status instanceof enigma_error)) {
|
|
|
|
$code = $status->getCode();
|
|
|
|
$code = $status->getCode();
|
|
|
|
|
|
|
|
|
|
|
|
if ($code == enigma_error::KEYNOTFOUND) {
|
|
|
|
if ($code == enigma_error::KEYNOTFOUND) {
|
|
|
|
$vars = array('email' => $status->getData('missing'));
|
|
|
|
if ($email = $status->getData('missing')) {
|
|
|
|
|
|
|
|
$vars = array('email' => $email);
|
|
|
|
$msg = 'enigma.' . $mode . 'nokey';
|
|
|
|
$msg = 'enigma.' . $mode . 'nokey';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
$msg = 'enigma.' . ($encrypt_enable ? 'encryptnoprivkey' : 'signnokey');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if ($code == enigma_error::BADPASS) {
|
|
|
|
else if ($code == enigma_error::BADPASS) {
|
|
|
|
$this->password_prompt($status);
|
|
|
|
$this->password_prompt($status);
|
|
|
|
}
|
|
|
|
}
|
|
|
|