Gustavrohss / EverythingIsWrong

0 stars 0 forks source link

Persisted state #44

Closed Gustavrohss closed 4 years ago

Gustavrohss commented 4 years ago

34

Persisted "per-user" state on the backend. Users can log in/"Create account" - there is no real account creation, just a hashcode on each username+password combination. The hash is saved in the redux tree. It doesn't seem to be uploaded to the realtime database, however. If it is, it still shouldn't cause any problems ("security" included). Upon being logged in the user will be greeted on the welcome screen by their username. The user will not be allowed to enter a new username on the join/host game screens, they will just have their name displayed. If the user scores >0, at the end of the game, their score will be uploaded to firestore. The exact trigger for when their score is uploaded may have to be reworked. Currently it's connected to the "results" navigation button. The display for high scores is not yet implemented.