mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-13 23:38:32 +02:00
Apply Pint fixes
This commit is contained in:
@ -6,7 +6,6 @@ use App\Api\v1\Requests\SettingStoreRequest;
|
||||
use App\Api\v1\Requests\SettingUpdateRequest;
|
||||
use App\Facades\Settings;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
|
||||
class SettingController extends Controller
|
||||
{
|
||||
@ -100,7 +99,7 @@ class SettingController extends Controller
|
||||
|
||||
// When deleting a setting, it may be an original or an additional one:
|
||||
// - Additional settings are created by administrators to extend 2FAuth, they are not registered in the laravel config object.
|
||||
// They are not nullable so empty string is not allowed.They only exist in the Options table, so it is possible to delete them.
|
||||
// They are not nullable so empty string is not allowed.They only exist in the Options table, so it is possible to delete them.
|
||||
// - Original settings are part of 2FAuth, they are registered in the laravel config object with their default value.
|
||||
// When set by an admin, their custom value is stored in the Options table too. Deleting a custom value in the Options table from here
|
||||
// won't delete the setting at all, so we reject all requests that ask for.
|
||||
|
Reference in New Issue
Block a user