<?php
namespace Modules\Utils\CollectInfo\Model; class Auth extends GeneralAbstract { protected function execute(\Modules\Utils\CollectInfo\Response\ResponseAbstract $response) { $tokenData = md5(\Engine\RandomGenerator::randomString(10).\Engine\RandomGenerator::randomFloat(10,15)); \Engine\Storage\General::getInstance('persistent')->set($this->request->tokenKey, $tokenData); $response->token = $tokenData; $response->status = 'ok'; } }