diff --git a/bin/cron.php b/bin/cron.php
index c627bd047601a6dc15be62cfd9f2cc3f3c303a08..a9fc947f2f6d5b533a283757810e1ea04452cc19 100644
--- a/bin/cron.php
+++ b/bin/cron.php
@@ -12,6 +12,29 @@ use \Symfony\Component\HttpFoundation\Response;
 $Cron     = new QUI\Cron\Manager();
 $Response = QUI::getGlobalResponse();
 
+
+try {
+    if (!QUI::getUserBySession()->getId()
+        && isset($_GET['username'])
+        && isset($_GET['password'])
+        && isset($_GET['login'])
+    ) {
+        $User = QUI::getUsers()->login(
+            $_GET['username'],
+            $_GET['password']
+        );
+
+        if ($User->getId()) {
+            QUI::getSession()->set('uid', $User->getId());
+
+            QUI\Rights\Permission::setUser($User);
+        }
+    }
+} catch (QUI\Exception $Exception) {
+    $Response->setStatusCode(Response::HTTP_FORBIDDEN);
+    $Response->send();
+}
+
 try {
     $Cron->execute();