-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from OnePlc/1.0.25-dev
1.0.25 dev
- Loading branch information
Showing
11 changed files
with
346 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file, in reverse chronological order by release. | ||
All notable changes to oneplace-event will be documented in this file. | ||
|
||
## 1.0.0 - TBD | ||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
### Added | ||
## [1.0.25] - | ||
|
||
- Its a composer package now | ||
### Added | ||
- User Interface for Application Firewall (pre-alpha) | ||
- Module can now be updated | ||
- Firewall Whitelist for Logged-in users | ||
|
||
### Changed | ||
|
||
- 100% of 0.9.x Codebase | ||
|
||
### Deprecated | ||
## [1.0.24] - 2021-03-31 | ||
|
||
- 100% of 0.9.x Codebase | ||
|
||
### Removed | ||
### Added | ||
|
||
- 100% of 0.9.x Codebase | ||
- Theme and Language Fields in User Form | ||
|
||
### Fixed | ||
### Changed | ||
|
||
- Removed dependencies | ||
- New Login Route to /home instead of / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
INSERT INTO `settings` (`settings_key`, `settings_value`) VALUES ('firewall-user-whitelist', '[\"login\",\"reset-pw\",\"forgot-pw\",\"home\",\"app-home\",\"route\"]'); | ||
|
||
INSERT INTO `permission` (`permission_key`, `module`, `label`, `nav_label`, `nav_href`, `show_in_menu`, `needs_globaladmin`) VALUES | ||
('index', 'OnePlace\\User\\Controller\\FirewallController', 'Firewall Index', '', '', 0, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
/** | ||
* FirewallController.php - Firewall Controller | ||
* | ||
* Main Controller for Application Firewall Management | ||
* | ||
* @category Controller | ||
* @package User | ||
* @author Verein onePlace | ||
* @copyright (C) 2021 Verein onePlace <[email protected]> | ||
* @license https://opensource.org/licenses/BSD-3-Clause | ||
* @version 1.0.0 | ||
* @since 1.0.24 | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace OnePlace\User\Controller; | ||
|
||
use Application\Controller\CoreController; | ||
use OnePlace\User\Model\Apikey; | ||
use OnePlace\User\Model\ApikeyTable; | ||
use OnePlace\User\Model\UserTable; | ||
use Laminas\View\Model\ViewModel; | ||
use Laminas\Db\Adapter\AdapterInterface; | ||
use Laminas\Db\TableGateway\TableGateway; | ||
use Laminas\Paginator\Paginator; | ||
use Laminas\Paginator\Adapter\DbSelect; | ||
use Laminas\Db\Sql\Select; | ||
use Laminas\Db\Sql\Where; | ||
use Laminas\Math\Rand; | ||
|
||
class FirewallController extends CoreController | ||
{ | ||
/** | ||
* Skeleton Table Object | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
private $oTableGateway; | ||
|
||
/** | ||
* ApiController constructor. | ||
* | ||
* @param AdapterInterface $oDbAdapter | ||
* @param UserTable $oTableGateway | ||
* @since 1.0.0 | ||
*/ | ||
public function __construct(AdapterInterface $oDbAdapter, UserTable $oTableGateway, $oServiceManager) | ||
{ | ||
parent::__construct($oDbAdapter, $oTableGateway, $oServiceManager); | ||
$this->oTableGateway = $oTableGateway; | ||
$this->sSingleForm = 'firewall-single'; | ||
} | ||
|
||
/** | ||
* Firewall Home - Main Index | ||
* | ||
* @return bool - no View File | ||
* @since 1.0.0 | ||
*/ | ||
public function indexAction() | ||
{ | ||
$this->setThemeBasedLayout('firewall'); | ||
|
||
return new ViewModel([]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.