205stelzear / elections

Website / Webapp to create and view elections for any Scout group
https://205stelzear-elections.v-ed.ca/
MIT License
0 stars 0 forks source link

Add password input to setup page to define password behavior #52

Closed V-ed closed 5 years ago

V-ed commented 5 years ago

If the (optionnal) password is empty, no password will be requested and as soon as there is no voter remaining, the results will be shown.

For backward compatibility reasons, if the password is not present (like, the key, not the actual data value) in the database, the previous "VL" will be asked.

The password is therefore stored in the database.

There is also a toggle for visibility of the password. There is no need to set it first, but the toggle might come in handy in case the device is passed around.

NOTE : The password is not encrypted, it is stored in plain text. This password is not supposed to be secure, it's just a small fence to open on the other side to prevent those who don't know the password to not see the results right away.

Closes #32