mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-15 08:12:25 +02:00
Enhance logging during authentication (#163)
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user