public function removeByLoginField($login)
    {
        $user = $this->getByLoginField($login);

        if ($user !== null) {
            return $this->removeUserById($user->getUserid());
        }

        return false;
    }
public function removeByLoginField($login)
    {
        $user = $this->getByLoginField($login);

        if ($user !== null) {
            return $this->removeUserById($user->getUserid());
        }

        return false;
    }
public function removeByLoginField ( $ login ) { $ user = $ this -> getByLoginField ( $ login ) ; if ( $ user !== null ) { return $ this -> removeUserById ( $ user -> getUserid ( ) ) ; } return false ; }
Remove the user based on his user login.

@param string $login
@return bool
@throws \Exception
Remove the user based on his user login .