@@ -414,7 +414,7 @@ |
||
414 | 414 | $keyObject = new Ec2Key($this->cborDecode(hex2bin($this->credential))); |
415 | 415 | $keyResource = openssl_pkey_get_public($keyObject->asPEM()); |
416 | 416 | if ($keyResource === false) { |
417 | - $this->fail("Unable to construct ECDSA public key resource from PEM."); |
|
417 | + $this->fail("Unable to construct ECDSA public key resource from PEM."); |
|
418 | 418 | }; |
419 | 419 | break; |
420 | 420 | case self::PK_ALGORITHM_RSA: |
@@ -182,7 +182,7 @@ |
||
182 | 182 | return $this->credential; |
183 | 183 | } |
184 | 184 | |
185 | - /** |
|
185 | + /** |
|
186 | 186 | * @return int |
187 | 187 | */ |
188 | 188 | public function getAlgo(): int |
@@ -109,7 +109,7 @@ |
||
109 | 109 | } |
110 | 110 | return self::STATE_AUTH_ALLOWMGMT; |
111 | 111 | } else { // in inflow, allow to check the management box; otherwise, |
112 | - // only auth |
|
112 | + // only auth |
|
113 | 113 | $moduleConfig = Configuration::getOptionalConfig('module_webauthn.php')->toArray(); |
114 | 114 | return $moduleConfig['registration']['use_inflow_registration'] ? self::STATE_AUTH_ALLOWMGMT : self::STATE_AUTH_NOMGMT; |
115 | 115 | } |
@@ -216,7 +216,7 @@ |
||
216 | 216 | $this->db->write( |
217 | 217 | 'INSERT INTO credentials ' . |
218 | 218 | '(user_id, credentialId, credential, algo, presenceLevel, isResidentKey, signCounter, friendlyName, hashedId) VALUES ' |
219 | - . '(:userId,:credentialId,:credential,:algo,:presenceLevel,:isResidentKey,:signCounter,:friendlyName,:hashedId)', |
|
219 | + . '(:userId,:credentialId,:credential,:algo,:presenceLevel,:isResidentKey,:signCounter,:friendlyName,:hashedId)', |
|
220 | 220 | [ |
221 | 221 | 'userId' => $userId, |
222 | 222 | 'credentialId' => $credentialId, |