Arquisoft / wiq_en1a

Wiq_en1a a web application by HappySw. Come and try our questions
http://158.179.217.182:3000
2 stars 0 forks source link

Hotfix v0.1.2 #78

Closed andrrsin closed 6 months ago

andrrsin commented 6 months ago

Fixed bugs

68

The problem was Game.jsx wasn't checking whether the user was or not connected. It was fixed by using:

useEffect(()=>{
   if (!isAuthenticated()) {
            navigate("/login");
    }
    }, [isAuthenticated, navigate]);

69

The url of mongo userdb has been changed to:

const mongoUri = process.env.MONGODB_URI || 'mongodb://localhost:27017/wiq-en1a-users';
adriiglz commented 6 months ago

thanks andrés, looks good, I will close these issues now