diff --git a/README.md b/README.md index ab84440..c06d189 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ You'll then need to configure the following: DB_CONNECTION=sqlite # Your databsae configuration (must the same as SQRL_DATABASE below) ... SQRL_DATABASE=sqlite # Points to the SQRL database connection - SQRL_URL_LOGIN=https://site/sqrl/login # URL to your login page (not used with LUMEN + SQRL_URL_LOGIN=https://site/sqrl/login # URL to the page after successful authentication SQRL_KEY_DOMAIN=site # URL to yours SQRL Server without http:// and https:// SQRL_API_ROUTE=/index.php/api/sqrl # Route to SQRL Server API SQRL_NONCE_MAX_AGE_MINUTES=5 # Max age in minutes of the valid nonce SQRL_NONCE_SALT=RANDOM # Generate a random salt value to calculate the nonce diff --git a/src/SQRL/Nonce.php b/src/SQRL/Nonce.php index 21e07bc..f12084b 100644 --- a/src/SQRL/Nonce.php +++ b/src/SQRL/Nonce.php @@ -52,6 +52,7 @@ class Nonce $o->can = SQRL::base64_encode_url($can); $o->save(); + Log::debug(sprintf('NUT [%s] created for (%s)',$o->nonce,$o->ip)); return $o; } diff --git a/src/SQRLController.php b/src/SQRLController.php index 85915b6..1432614 100644 --- a/src/SQRLController.php +++ b/src/SQRLController.php @@ -100,11 +100,11 @@ class SQRLController extends Controller } else { foreach (['ver','cmd'] as $y) Log::debug(sprintf('API-client-%s [%s]',str_pad($y,5,' '),Arr::get($decode_request,'client.'.$y))); - Log::debug(sprintf('API-client-opt [%s]',join('|',Arr::get($decode_request,'client.opt')))); - Log::debug(sprintf('API-client-idk [%s]',base64_encode(Arr::get($decode_request,'client.idk')))); - Log::debug(sprintf('API-server [%s]',serialize(Arr::get($decode_request,'server')))); + Log::debug(sprintf('API-client-opt [%s]',join('|',Arr::get($decode_request,'client.opt')))); + Log::debug(sprintf('API-client-idk [%s]',base64_encode(Arr::get($decode_request,'client.idk')))); + Log::debug(sprintf('API-server [%s]',serialize(Arr::get($decode_request,'server')))); - Log::debug(sprintf('API-type [%s]',$sqrl_nonce->type)); + Log::debug(sprintf('API-type [%s]',$sqrl_nonce->type)); switch ($sqrl_nonce->type) { case 'auth':