Skip to content
Snippets Groups Projects
Commit f2d36b93 authored by Damien's avatar Damien
Browse files

[FEAT] [PARA V2] Better error message when no signature place

parent f3b1231d
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,9 @@ if (!defined("_VISA_USERS")) ...@@ -126,6 +126,9 @@ if (!defined("_VISA_USERS"))
if (!defined("_TMP_SIGNED_FILE_FAILED")) if (!defined("_TMP_SIGNED_FILE_FAILED"))
define("_TMP_SIGNED_FILE_FAILED", "Failure on document generation with signature"); define("_TMP_SIGNED_FILE_FAILED", "Failure on document generation with signature");
if (!defined("NO_PLACE_SIGNATURE"))
define("NO_PLACE_SIGNATURE", "No place for signature");
if (!defined("_ENCRYPTED")) if (!defined("_ENCRYPTED"))
define("_ENCRYPTED", "Encoded"); define("_ENCRYPTED", "Encoded");
......
...@@ -127,6 +127,9 @@ if (!defined("_VISA_USERS")) ...@@ -127,6 +127,9 @@ if (!defined("_VISA_USERS"))
if (!defined("_TMP_SIGNED_FILE_FAILED")) if (!defined("_TMP_SIGNED_FILE_FAILED"))
define("_TMP_SIGNED_FILE_FAILED", "Echec de la génération document avec signature"); define("_TMP_SIGNED_FILE_FAILED", "Echec de la génération document avec signature");
if (!defined("NO_PLACE_SIGNATURE"))
define("NO_PLACE_SIGNATURE", "Aucun emplacement de signature");
if (!defined("_ENCRYPTED")) if (!defined("_ENCRYPTED"))
define("_ENCRYPTED", "crypté"); define("_ENCRYPTED", "crypté");
......
...@@ -27,7 +27,7 @@ if (empty($docserver)) { ...@@ -27,7 +27,7 @@ if (empty($docserver)) {
} else { } else {
// some checking on docserver size limit // some checking on docserver size limit
if(!is_file($_SESSION['config']['tmppath'] . $tmpFileName)){ if(!is_file($_SESSION['config']['tmppath'] . $tmpFileName)){
echo "{\"status\":1, \"error\" : \"". _TMP_SIGNED_FILE_FAILED . ': ' ._FILE . ' ' . _ENCRYPTED .' ' . _OR .' ' . _MISSING ."\"}"; echo "{\"status\":1, \"error\" : \"". _TMP_SIGNED_FILE_FAILED . ': ' ._FILE . ' ' . _ENCRYPTED .' ' . _OR .' ' . _MISSING . ' ' . _OR .' ' . NO_PLACE_SIGNATURE ."\"}";
exit; exit;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment