Minor items

This commit is contained in:
Deon George 2020-08-14 14:38:51 +10:00
parent 8f8b50d630
commit bdff9462d3
3 changed files with 6 additions and 5 deletions

View File

@ -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) DB_CONNECTION=sqlite # Your databsae configuration (must the same as SQRL_DATABASE below)
... ...
SQRL_DATABASE=sqlite # Points to the SQRL database connection 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_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_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 SQRL_NONCE_SALT=RANDOM # Generate a random salt value to calculate the nonce

View File

@ -52,6 +52,7 @@ class Nonce
$o->can = SQRL::base64_encode_url($can); $o->can = SQRL::base64_encode_url($can);
$o->save(); $o->save();
Log::debug(sprintf('NUT [%s] created for (%s)',$o->nonce,$o->ip));
return $o; return $o;
} }