learn-ocaml
learn-ocaml copied to clipboard
Deleting accidental duplicate tokens
It's easy for users to accidentally create duplicate tokens with the same nickname when logging in on different machines instead of reusing the same token to log in. The students then need to request for us to manually delete the extra tokens by removing them from the /sync folder, so that we can associate only the intended token with them when calculating their grades.
Would it be possible to have some better way of dealing with this, maybe allowing users to delete their own tokens, adding token deletion to the teacher activity, and/or having the option of giving a warning when a user tries to register a new token with a nickname that's already in use?
For the moment, couldn't you use the nickname as the student identifier and merge all its submissions, ignoring the token?
Tell me if I am wrong but the student ID is not a secret. Thus, we cannot allow a student to reclaim a token if he provides the right student ID.
The two other options are good ideas! @AltGr, what about their feasibility?
Yes, that's what we'll probably end up doing.
Student ID numbers aren't public, but they aren't completely secret either, you're right. For the first option, I meant allowing the user to delete their token while logged in (not by providing the nickname). That would be best in conjunction with some other solution since the student might just log out without ever recording the token.