Enhance logging during authentication (#163)

This commit is contained in:
Bubka
2023-03-16 13:25:43 +01:00
parent 960d1ca5f9
commit 9913560787
8 changed files with 39 additions and 9 deletions

View File

@ -10,6 +10,7 @@ use Illuminate\Foundation\Auth\ResetsPasswords;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Password;
use Illuminate\Validation\ValidationException;
@ -53,6 +54,7 @@ class WebAuthnRecoveryController extends Controller
}
$user->preferences['useWebauthnOnly'] = false;
$user->save();
Log::notice(sprintf('Legacy login restored for user ID #%s', $user->id));
} else {
throw new AuthenticationException();
}