From 3769a792a091e405ea8849049429b345f20e3310 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 24 Aug 2023 09:50:41 +0200 Subject: [PATCH] Fix webauthn when its vars are empty in the .env file - Closes #218 --- config/webauthn.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/webauthn.php b/config/webauthn.php index ce371ef3..62f8d4d4 100644 --- a/config/webauthn.php +++ b/config/webauthn.php @@ -2,7 +2,7 @@ return [ - 'user_verification' => env('WEBAUTHN_USER_VERIFICATION', 'preferred'), + 'user_verification' => envUnlessEmpty('WEBAUTHN_USER_VERIFICATION', 'preferred'), /* |-------------------------------------------------------------------------- @@ -16,8 +16,8 @@ return [ */ 'relying_party' => [ - 'name' => env('WEBAUTHN_NAME', config('app.name')), - 'id' => env('WEBAUTHN_ID'), + 'name' => envUnlessEmpty('WEBAUTHN_NAME', config('app.name')), + 'id' => envUnlessEmpty('WEBAUTHN_ID', null), ], /*