fetchProvidedUser(); } catch (Exception $exception) { $this->error($exception->getMessage()); return 1; } $this->info("This will delete any configure multi-factor authentication methods for user: \n- ID: {$user->id}\n- Name: {$user->name}\n- Email: {$user->email}\n"); $this->info('If multi-factor authentication is required for this user they will be asked to reconfigure their methods on next login.'); $confirm = $this->confirm('Are you sure you want to proceed?'); if (!$confirm) { return 1; } $user->mfaValues()->delete(); $this->info('User MFA methods have been reset.'); return 0; } }