protected function updateUserShadowLogin(Entity\Users $userEntity)
    {
        if (Carbon::now() > $userEntity->getShadowvalidity()) {
            $userEntity->setShadowpassword(null);
            $userEntity->setShadowtoken(null);
            $userEntity->setShadowvalidity(null);
        }

        return $userEntity;
    }
protected function updateUserShadowLogin(Entity\Users $userEntity)
    {
        if (Carbon::now() > $userEntity->getShadowvalidity()) {
            $userEntity->setShadowpassword(null);
            $userEntity->setShadowtoken(null);
            $userEntity->setShadowvalidity(null);
        }

        return $userEntity;
    }
protected function updateUserShadowLogin ( Entity \ Users $ userEntity ) { if ( Carbon :: now ( ) > $ userEntity -> getShadowvalidity ( ) ) { $ userEntity -> setShadowpassword ( null ) ; $ userEntity -> setShadowtoken ( null ) ; $ userEntity -> setShadowvalidity ( null ) ; } return $ userEntity ; }
Remove expired shadow login data.

@param Entity\Users $userEntity

@return Entity\Users
Remove expired shadow login data .