mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
start investigating Login controller time
This commit is contained in:
parent
d606383b70
commit
11bf1ccfae
|
|
@ -10,9 +10,13 @@ class LoginController extends BaseController
|
||||||
{
|
{
|
||||||
public function __construct(\Slim\Container $container, string $sessionCookieName)
|
public function __construct(\Slim\Container $container, string $sessionCookieName)
|
||||||
{
|
{
|
||||||
|
$fp = fopen('/config/data/sql.log', 'a');
|
||||||
|
$time_start = microtime(true);
|
||||||
parent::__construct($container);
|
parent::__construct($container);
|
||||||
$this->SessionService = SessionService::getInstance();
|
$this->SessionService = SessionService::getInstance();
|
||||||
$this->SessionCookieName = $sessionCookieName;
|
$this->SessionCookieName = $sessionCookieName;
|
||||||
|
fwrite($fp, "£££ Login controller - construction time : " . round((microtime(true) - $time_start),6) . "\n");
|
||||||
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $SessionService;
|
protected $SessionService;
|
||||||
|
|
@ -20,6 +24,9 @@ class LoginController extends BaseController
|
||||||
|
|
||||||
public function ProcessLogin(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
public function ProcessLogin(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||||
{
|
{
|
||||||
|
$fp = fopen('/config/data/sql.log', 'a');
|
||||||
|
fwrite($fp, "£££ Login controller - ProcessLogin called\n");
|
||||||
|
fclose($fp);
|
||||||
$postParams = $request->getParsedBody();
|
$postParams = $request->getParsedBody();
|
||||||
if (isset($postParams['username']) && isset($postParams['password']))
|
if (isset($postParams['username']) && isset($postParams['password']))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ fwrite($fp, "*** routing - dep load time : " . round((microtime(true) - $route_t
|
||||||
$main_route_time_start = microtime(true);
|
$main_route_time_start = microtime(true);
|
||||||
|
|
||||||
$session_cookie_name = $appContainer->LoginControllerInstance->GetSessionCookieName();
|
$session_cookie_name = $appContainer->LoginControllerInstance->GetSessionCookieName();
|
||||||
|
fwrite($fp, "*** routing - session cookie name time : " . $session_cookie_name . "\n");
|
||||||
fwrite($fp, "*** routing - get session cookie name time : " . round((microtime(true) - $main_route_time_start),6) . "\n");
|
fwrite($fp, "*** routing - get session cookie name time : " . round((microtime(true) - $main_route_time_start),6) . "\n");
|
||||||
|
|
||||||
$session_auth_middelware = new SessionAuthMiddleware($appContainer, $session_cookie_name);
|
$session_auth_middelware = new SessionAuthMiddleware($appContainer, $session_cookie_name);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user