timflutre / PlantBreedGame

A serious game to teach plant selective breeding.
https://sourcesup.renater.fr/plantbreedgame/
GNU Affero General Public License v3.0
8 stars 2 forks source link

check that there always exists "admin" as "game master" #16

Closed timflutre closed 6 years ago

timflutre commented 6 years ago

At the very beginning of the appli, it should check that a player named "test" with the "tester" status exists. I will modify the setup.Rmd accordingly so that the data.zip it generates always has a "test" breeder inside.

juliendiot42 commented 6 years ago

Would it not be better to check that there always exists "admin" with "game master" status than a tester ?

timflutre commented 6 years ago

@juliendiot42 no because the "tester" player doesn't require any password and one shouldn't use an empty password for the "game master" player as default (bad security!).

timflutre commented 6 years ago

As discussed with Julien, indeed he is right, the game should check that there always exist a player named "admin" with the status of "game master".

timflutre commented 6 years ago

Done in commit ea22dd5.