move checkout controller trait
Dieser Commit ist enthalten in:
Ursprung
28035cca52
Commit
db60ca12b3
@ -13,7 +13,7 @@
|
||||
* @link http://www.oxidmodule.com
|
||||
*/
|
||||
|
||||
namespace D3\Webauthn\Modules\Application\Controller;
|
||||
namespace D3\Webauthn\Application\Controller\Traits;
|
||||
|
||||
use D3\Webauthn\Application\Model\Webauthn;
|
||||
use D3\Webauthn\Application\Model\WebauthnConf;
|
||||
@ -25,13 +25,13 @@ use OxidEsales\Eshop\Core\Session;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
|
||||
trait d3_webauthn_getUserTrait
|
||||
trait checkoutGetUserTrait
|
||||
{
|
||||
/**
|
||||
* @return bool|object|User
|
||||
* @throws Exception
|
||||
* @throws DoctrineException
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws DoctrineException
|
||||
* @throws Exception
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function getUser()
|
||||
@ -39,7 +39,7 @@ trait d3_webauthn_getUserTrait
|
||||
$user = parent::getUser();
|
||||
|
||||
if ($user && $user->getId()) {
|
||||
$webauthn = $this->d3GetWebauthnpObject();
|
||||
$webauthn = $this->d3GetWebauthnObject();
|
||||
|
||||
if ($webauthn->isActive($user->getId())
|
||||
&& !$this->d3GetSessionObject()->getVariable(WebauthnConf::WEBAUTHN_SESSION_AUTH)
|
@ -15,7 +15,9 @@
|
||||
|
||||
namespace D3\Webauthn\Modules\Application\Controller;
|
||||
|
||||
use D3\Webauthn\Application\Controller\Traits\checkoutGetUserTrait;
|
||||
|
||||
class d3_webauthn_OrderController extends d3_webauthn_OrderController_parent
|
||||
{
|
||||
use d3_webauthn_getUserTrait;
|
||||
use checkoutGetUserTrait;
|
||||
}
|
@ -15,7 +15,9 @@
|
||||
|
||||
namespace D3\Webauthn\Modules\Application\Controller;
|
||||
|
||||
use D3\Webauthn\Application\Controller\Traits\checkoutGetUserTrait;
|
||||
|
||||
class d3_webauthn_PaymentController extends d3_webauthn_PaymentController_parent
|
||||
{
|
||||
use d3_webauthn_getUserTrait;
|
||||
use checkoutGetUserTrait;
|
||||
}
|
@ -15,7 +15,9 @@
|
||||
|
||||
namespace D3\Webauthn\Modules\Application\Controller;
|
||||
|
||||
use D3\Webauthn\Application\Controller\Traits\checkoutGetUserTrait;
|
||||
|
||||
class d3_webauthn_UserController extends d3_webauthn_UserController_parent
|
||||
{
|
||||
use d3_webauthn_getUserTrait;
|
||||
use checkoutGetUserTrait;
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren