Remove check when initializing

This commit is contained in:
Philipp Lang 2023-05-15 19:59:28 +02:00
parent 708b0cf386
commit 09182821f8
1 changed files with 0 additions and 5 deletions

View File

@ -16,14 +16,11 @@ use App\Setting\NamiSettings;
use Illuminate\Http\RedirectResponse; use Illuminate\Http\RedirectResponse;
use Lorisleiva\Actions\ActionRequest; use Lorisleiva\Actions\ActionRequest;
use Lorisleiva\Actions\Concerns\AsAction; use Lorisleiva\Actions\Concerns\AsAction;
use Zoomyboy\LaravelNami\Nami;
class InitializeAction class InitializeAction
{ {
use AsAction; use AsAction;
public string $commandSignature = 'initialize {--mglnr=} {--password=} {--group=}';
/** /**
* @var array<int, class-string> * @var array<int, class-string>
*/ */
@ -74,8 +71,6 @@ class InitializeAction
public function asController(ActionRequest $request, NamiSettings $settings): RedirectResponse public function asController(ActionRequest $request, NamiSettings $settings): RedirectResponse
{ {
$api = Nami::freshLogin($request->input('mglnr'), $request->input('password'));
$settings->mglnr = (int) $request->input('mglnr'); $settings->mglnr = (int) $request->input('mglnr');
$settings->password = $request->input('password'); $settings->password = $request->input('password');
$settings->default_group_id = (int) $request->input('group_id'); $settings->default_group_id = (int) $request->input('group_id');