prevent type error
This commit is contained in:
parent
4edfa2d3c3
commit
d7912f6371
@ -147,7 +147,7 @@ class d3totpadminlogin extends AdminController
|
|||||||
$userId = $user->d3TotpGetCurrentUser();
|
$userId = $user->d3TotpGetCurrentUser();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$sTotp = implode('', Registry::getRequest()->getRequestEscapedParameter('d3totp'));
|
$sTotp = implode('', Registry::getRequest()->getRequestEscapedParameter('d3totp', []));
|
||||||
|
|
||||||
$totp = $this->d3TotpGetTotpObject();
|
$totp = $this->d3TotpGetTotpObject();
|
||||||
$totp->loadByUserId($userId);
|
$totp->loadByUserId($userId);
|
||||||
|
@ -84,7 +84,7 @@ class d3_totp_UserComponent extends d3_totp_UserComponent_parent
|
|||||||
*/
|
*/
|
||||||
public function d3TotpCheckTotpLogin()
|
public function d3TotpCheckTotpLogin()
|
||||||
{
|
{
|
||||||
$sTotp = implode('', Registry::getRequest()->getRequestEscapedParameter('d3totp'));
|
$sTotp = implode('', Registry::getRequest()->getRequestEscapedParameter('d3totp', []));
|
||||||
|
|
||||||
/** @var d3_totp_user $oUser */
|
/** @var d3_totp_user $oUser */
|
||||||
$oUser = oxNew(User::class);
|
$oUser = oxNew(User::class);
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
namespace D3\Totp\tests\unit\Modules\Application\Controller\Admin;
|
namespace D3\Totp\tests\unit\Modules\Application\Controller\Admin;
|
||||||
|
|
||||||
use D3\TestingTools\Development\IsMockable;
|
|
||||||
use D3\TestingTools\Development\CanAccessRestricted;
|
use D3\TestingTools\Development\CanAccessRestricted;
|
||||||
use D3\Totp\Application\Model\d3totp;
|
use D3\Totp\Application\Model\d3totp;
|
||||||
use D3\Totp\Application\Model\d3totp_conf;
|
use D3\Totp\Application\Model\d3totp_conf;
|
||||||
@ -28,7 +27,6 @@ use ReflectionException;
|
|||||||
class d3_totp_LoginControllerTest extends d3TotpUnitTestCase
|
class d3_totp_LoginControllerTest extends d3TotpUnitTestCase
|
||||||
{
|
{
|
||||||
use CanAccessRestricted;
|
use CanAccessRestricted;
|
||||||
use IsMockable;
|
|
||||||
|
|
||||||
/** @var d3_totp_LoginController */
|
/** @var d3_totp_LoginController */
|
||||||
protected $_oController;
|
protected $_oController;
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
namespace D3\Totp\tests\unit\Modules\Application\Controller;
|
namespace D3\Totp\tests\unit\Modules\Application\Controller;
|
||||||
|
|
||||||
use D3\TestingTools\Development\IsMockable;
|
|
||||||
use D3\TestingTools\Development\CanAccessRestricted;
|
use D3\TestingTools\Development\CanAccessRestricted;
|
||||||
use D3\Totp\Application\Model\d3totp;
|
use D3\Totp\Application\Model\d3totp;
|
||||||
use D3\Totp\Modules\Application\Controller\d3_totp_OrderController;
|
use D3\Totp\Modules\Application\Controller\d3_totp_OrderController;
|
||||||
|
Loading…
Reference in New Issue
Block a user