diff --git a/migration/20.10/2010.sql b/migration/20.10/2010.sql
index 63df31d20fbb54289b4d94b87f1509c3bce73ef6..f43bf61c400e2eb8e138f6a898b74f4291cd2425 100755
--- a/migration/20.10/2010.sql
+++ b/migration/20.10/2010.sql
@@ -20,6 +20,8 @@ ALTER TABLE notif_email_stack DROP COLUMN IF EXISTS text_body;
 ALTER TABLE notif_email_stack DROP COLUMN IF EXISTS module;
 
 /* USERS */
+ALTER TABLE users DROP COLUMN IF EXISTS cookie_key;
+ALTER TABLE users DROP COLUMN IF EXISTS cookie_date;
 ALTER TABLE users DROP COLUMN IF EXISTS refresh_token;
 ALTER TABLE users ADD COLUMN refresh_token jsonb NOT NULL DEFAULT '[]';
 
diff --git a/sql/structure.sql b/sql/structure.sql
index 9642efd8ff55955dd42c1daef32589cd35854742..e4798a6f9e886f38f5de43c8b9c621661636177e 100755
--- a/sql/structure.sql
+++ b/sql/structure.sql
@@ -220,8 +220,6 @@ CREATE TABLE users
   status character varying(10) NOT NULL DEFAULT 'OK'::character varying,
   password_modification_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
   loginmode character varying(50) DEFAULT NULL::character varying,
-  cookie_key character varying(255) DEFAULT NULL::character varying,
-  cookie_date timestamp without time zone,
   refresh_token jsonb NOT NULL DEFAULT '[]',
   reset_token text,
   failed_authentication INTEGER DEFAULT 0,
diff --git a/src/app/template/controllers/TemplateController.php b/src/app/template/controllers/TemplateController.php
index f2629c25c50ed76d493b28edf837d1f28c4d74a9..bc73dc60e5afc29214b0c5b5ed4c4d85133aef15 100755
--- a/src/app/template/controllers/TemplateController.php
+++ b/src/app/template/controllers/TemplateController.php
@@ -113,8 +113,8 @@ class TemplateController
             return $response->withStatus(400)->withJson(['errors' => 'Bad Request']);
         }
 
-        if ($body['target'] == 'acknowledgementReceipt' && !empty($data['entities'])) {
-            $checkEntities = TemplateModel::checkEntities(['data' => $data]);
+        if ($body['target'] == 'acknowledgementReceipt' && !empty($body['entities'])) {
+            $checkEntities = TemplateModel::checkEntities(['data' => $body]);
             if (!empty($checkEntities)) {
                 return $response->withJson(['checkEntities' => $checkEntities]);
             }
diff --git a/src/core/models/AuthenticationModel.php b/src/core/models/AuthenticationModel.php
index 9986cd3c168ff9cc2fc1365b822e868815f209d0..9939b8401924b195a72ef12065ffc43b38f43dd1 100755
--- a/src/core/models/AuthenticationModel.php
+++ b/src/core/models/AuthenticationModel.php
@@ -39,94 +39,7 @@ class AuthenticationModel
 
         return password_verify($args['password'], $aReturn[0]['password']);
     }
-
-    public static function getCookieAuth()
-    {
-        $rawCookie = $_COOKIE['maarchCourrierAuth'];
-        if (empty($rawCookie)) {
-            return [];
-        }
-
-        $cookieDecoded = base64_decode($rawCookie);
-        $cookie = json_decode($cookieDecoded);
-
-        return (array)$cookie;
-    }
-
-    public static function cookieAuthentication(array $args)
-    {
-        ValidatorModel::notEmpty($args, ['userId', 'cookieKey']);
-        ValidatorModel::stringType($args, ['userId', 'cookieKey']);
-
-        $aReturn = DatabaseModel::select([
-            'select'    => [1],
-            'table'     => ['users'],
-            'where'     => ['lower(user_id) = lower(?)', 'cookie_key = ?', 'cookie_date > CURRENT_TIMESTAMP'],
-            'data'      => [$args['userId'], $args['cookieKey']]
-        ]);
-
-        if (empty($aReturn[0])) {
-            return false;
-        }
-
-        return true;
-    }
-
-    public static function setCookieAuth(array $args)
-    {
-        ValidatorModel::notEmpty($args, ['userId']);
-        ValidatorModel::stringType($args, ['userId']);
-
-        $cookieTime = 0;
-
-        $loadedXml = CoreConfigModel::getXmlLoaded(['path' => 'apps/maarch_entreprise/xml/config.xml']);
-        if ($loadedXml) {
-            $cookieTime = (string)$loadedXml->CONFIG->CookieTime;
-        }
-
-        $user = DatabaseModel::select([
-            'select'    => ['id', 'cookie_key'],
-            'table'     => ['users'],
-            'where'     => ['lower(user_id) = lower(?)', 'cookie_date > CURRENT_TIMESTAMP'],
-            'data'      => [$args['userId']]
-        ]);
-        if (empty($user[0]['cookie_key'])) {
-            $cookieKey = AuthenticationModel::getPasswordHash($args['userId']);
-        } else {
-            $cookieKey = $user[0]['cookie_key'];
-        }
-
-        $cookiePath = str_replace(['apps/maarch_entreprise/index.php', 'apps/maarch_entreprise/log.php', 'rest/index.php'], '', $_SERVER['SCRIPT_NAME']);
-        $cookieTime = time() + 60 * $cookieTime;
-
-        DatabaseModel::update([
-            'table' => 'users',
-            'set'   => [
-                'cookie_key'    => $cookieKey,
-                'cookie_date'   => date('Y-m-d H:i:s', $cookieTime),
-            ],
-            'where' => ['lower(user_id) = lower(?)'],
-            'data'  => [$args['userId']]
-        ]);
-
-        $cookieData = json_encode(['id' => $user[0]['id'],'userId' => $args['userId'], 'cookieKey' => $cookieKey]);
-        setcookie('maarchCourrierAuth', base64_encode($cookieData), $cookieTime, $cookiePath, '', false, false);
-
-        return true;
-    }
-
-    public static function deleteCookieAuth()
-    {
-        $previousCookie = AuthenticationModel::getCookieAuth();
-
-        if (!empty($previousCookie)) {
-            $cookiePath = str_replace(['apps/maarch_entreprise/index.php', 'rest/index.php'], '', $_SERVER['SCRIPT_NAME']);
-            setcookie('maarchCourrierAuth', '', time() - 1, $cookiePath, '', false, true);
-        }
-
-        return true;
-    }
-
+    
     public static function resetFailedAuthentication(array $aArgs)
     {
         ValidatorModel::notEmpty($aArgs, ['userId']);