mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Remove invalid calls to the Settings facade
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Extensions\WebauthnCredentialBroker;
|
||||
use App\Facades\Settings;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Requests\WebauthnRecoveryRequest;
|
||||
use Illuminate\Auth\AuthenticationException;
|
||||
@ -52,7 +51,8 @@ class WebAuthnRecoveryController extends Controller
|
||||
if ($this->shouldRevokeAllCredentials($request)) {
|
||||
$user->flushCredentials();
|
||||
}
|
||||
Settings::delete('useWebauthnOnly');
|
||||
$user->preferences['useWebauthnOnly'] = false;
|
||||
$user->save();
|
||||
} else {
|
||||
throw new AuthenticationException();
|
||||
}
|
||||
|
Reference in New Issue
Block a user