public function markAsConfigured(UserConfigurationListener $listener, AreaContract $area)
    {

        $service    = app(TwoFactorProvidersService::class);
        $service->bind();
        $provider   = $service->getEnabledInArea($area);
        $userConfig = $this->userConfigService->getSettingsByArea($area);
        $secretKey  = $userConfig->settings['secret_key'];
        $form       = app(\Antares\Modules\TwoFactorAuth\Http\Presenters\AuthPresenter::class)->verify($userConfig, $area, $provider, $secretKey);


        return $listener->afterConfiguration($form);
    }
public function markAsConfigured(UserConfigurationListener $listener, AreaContract $area)
    {

        $service    = app(TwoFactorProvidersService::class);
        $service->bind();
        $provider   = $service->getEnabledInArea($area);
        $userConfig = $this->userConfigService->getSettingsByArea($area);
        $secretKey  = $userConfig->settings['secret_key'];
        $form       = app(\Antares\Modules\TwoFactorAuth\Http\Presenters\AuthPresenter::class)->verify($userConfig, $area, $provider, $secretKey);


        return $listener->afterConfiguration($form);
    }
public function markAsConfigured ( UserConfigurationListener $ listener , AreaContract $ area ) { $ service = app ( TwoFactorProvidersService :: class ) ; $ service -> bind ( ) ; $ provider = $ service -> getEnabledInArea ( $ area ) ; $ userConfig = $ this -> userConfigService -> getSettingsByArea ( $ area ) ; $ secretKey = $ userConfig -> settings [ 'secret_key' ] ; $ form = app ( \ Antares \ Modules \ TwoFactorAuth \ Http \ Presenters \ AuthPresenter :: class ) -> verify ( $ userConfig , $ area , $ provider , $ secretKey ) ; return $ listener -> afterConfiguration ( $ form ) ; }
Mark given area as configured.

@param UserConfigurationListener $listener
@param AreaContract $area
@return type
Mark given area as configured .