Skip to content

Commit

Permalink
js and css build
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiu committed Jul 11, 2022
1 parent 8a1920a commit 7ecfc31
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 155 deletions.
2 changes: 1 addition & 1 deletion public/css/app.css

Large diffs are not rendered by default.

292 changes: 146 additions & 146 deletions public/js/app.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/Admin/src/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,14 @@ public function loginAction(): ResponseInterface
$adapter->setIdentity($data['username']);
$adapter->setCredential($data['password']);
$authResult = $this->authenticationService->authenticate();
$logAdmin = $this->adminService->logAdminVisit(
$this->getRequest()->getServerParams(),
$data['username']
);
// $logAdmin = $this->adminService->logAdminVisit(
// $this->getRequest()->getServerParams(),
// $data['username']
// );
if ($authResult->isValid()) {
$identity = $authResult->getIdentity();
$logAdmin->setLoginStatus(AdminLogin::LOGIN_SUCCESS);
$this->adminService->getAdminRepository()->saveAdminVisit($logAdmin);
// $logAdmin->setLoginStatus(AdminLogin::LOGIN_SUCCESS);
// $this->adminService->getAdminRepository()->saveAdminVisit($logAdmin);
if ($identity->getStatus() === Admin::STATUS_INACTIVE) {
$this->authenticationService->clearIdentity();
$this->messenger->addError('Admin is inactive', 'user-login');
Expand All @@ -270,8 +270,8 @@ public function loginAction(): ResponseInterface

return new RedirectResponse($this->router->generateUri('dashboard'));
} else {
$logAdmin->setLoginStatus(AdminLogin::LOGIN_FAIL);
$this->adminService->getAdminRepository()->saveAdminVisit($logAdmin);
// $logAdmin->setLoginStatus(AdminLogin::LOGIN_FAIL);
// $this->adminService->getAdminRepository()->saveAdminVisit($logAdmin);
$this->messenger->addData('shouldRebind', true);
$this->forms->saveState($form);
$this->messenger->addError($authResult->getMessages(), 'user-login');
Expand Down

0 comments on commit 7ecfc31

Please sign in to comment.