make relying party URL configurable
This commit is contained in:
parent
8df85439e4
commit
bfdb6454d8
@ -26,9 +26,13 @@ class RelyingPartyEntity extends PublicKeyCredentialRpEntity
|
|||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
$shopUrl = is_string(Registry::getConfig()->getConfigParam('d3webauthn_diffshopurl')) ?
|
||||||
|
trim(Registry::getConfig()->getConfigParam('d3webauthn_diffshopurl')) :
|
||||||
|
null;
|
||||||
|
|
||||||
parent::__construct(
|
parent::__construct(
|
||||||
Registry::getConfig()->getActiveShop()->getFieldData('oxname'),
|
Registry::getConfig()->getActiveShop()->getFieldData('oxname'),
|
||||||
preg_replace('/(^www\.)(.*)/mi', '$2', $_SERVER['HTTP_HOST'])
|
$shopUrl ?: preg_replace('/(^www\.)(.*)/mi', '$2', $_SERVER['HTTP_HOST'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -146,5 +146,13 @@ $aModule = array(
|
|||||||
'block' => 'checkout_options_login',
|
'block' => 'checkout_options_login',
|
||||||
'file' => 'Application/views/blocks/page/checkout/inc/checkout_options_login.tpl',
|
'file' => 'Application/views/blocks/page/checkout/inc/checkout_options_login.tpl',
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
'settings' => [
|
||||||
|
[
|
||||||
|
'group' => $sModuleId.'_general',
|
||||||
|
'name' => $sModuleId.'_diffshopurl',
|
||||||
|
'type' => 'str',
|
||||||
|
'value' => false
|
||||||
|
],
|
||||||
]
|
]
|
||||||
);
|
);
|
Loading…
Reference in New Issue
Block a user