hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.32k stars 289 forks source link

Create invite code for teachers #989

Closed Felienne closed 3 years ago

Felienne commented 3 years ago

Currently, we manually make teachers "teacher" in the admin back end. Would be nice to be able to give people a special link with a (one time use) code that makes them teacher straight away.

Felienne commented 3 years ago

We already have code to mark a teacher as teacher in the Admin UI: https://github.com/Felienne/hedy/blob/7e7dbe22a68408e78d3de04eddf463e3dbed8abe/templates/admin.html#L39

So it is a matter of:

boryanagoncharenko commented 3 years ago

After discussing the issue with @Felienne the scope of the functionality changed slightly. This issue is meant to cover the case in which the code will be printed on physical handouts which implies that it is more convenient to use a single static code. Needless to say, adding functionality for unique invitation links is still wanted: #1056

Felienne commented 3 years ago

Closed by #1054