protected function configureView()
 {
     parent::configureView();
     $this->view->usernameColumnName = $this->usernameColumnName;
     $this->view->attachEventHandler("AttemptLogin", function () {
         $login = $this->getLoginProvider();
         try {
             $usernameColumn = $this->usernameColumnName;
             if ($login->login($this->{$usernameColumn}, $this->Password)) {
                 $this->onSuccess();
             }
         } catch (LoginDisabledException $er) {
             $this->Disabled = true;
             $this->Failed = true;
         } catch (LoginFailedException $er) {
             $this->Failed = true;
         }
     });
 }