Skip to content

Commit 2aa04c5

Browse files
committed
Do not tie debug mode to SSP debug logging
1 parent f5c2cc1 commit 2aa04c5

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

config-templates/module_webauthn.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

33
$config = [
4+
/* Enable/disable Debug made */
5+
'debug' => false,
6+
47
/* required configuration parameters */
58
'store' => [
69
'webauthn:Database',

www/authprocess.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
);
2222
}
2323

24-
$config = Configuration::getInstance();
25-
$debugEnabled = $config->getValue('logging.level', Logger::NOTICE) === Logger::DEBUG;
24+
$moduleConfig = Configuration::getOptionalConfig('module_webauthn.php');
25+
$debugEnabled = $moduleConfig->getBoolean('debug', false);
2626

2727
$id = $_REQUEST['StateId'];
2828
/** @var array $state */

www/regprocess.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
);
2222
}
2323

24-
$config = Configuration::getInstance();
25-
$debugEnabled = $config->getValue('logging.level', Logger::NOTICE) === Logger::DEBUG;
24+
$moduleConfig = Configuration::getOptionalConfig('module_webauthn.php');
25+
$debugEnabled = $moduleConfig->getBoolean('debug', false);
2626

2727
$id = $_REQUEST['StateId'];
2828
/** @var array $state */

0 commit comments

Comments
 (0)