CDo246 / T1-Online-Exam-System

1 stars 2 forks source link

Fix linking CreatedSession to Examiner #19

Open henrygoodman opened 1 year ago

henrygoodman commented 1 year ago

An examiner can create a CreatedSession (with the generated code), but we need to determine the lifetime of this code

Should it:

If so, then an examiner will always have either 0 or 1 createdSessions active at a time, and we should query the DB for that specific session upon login (using NextJS session maybe, as this stores the users name and email which we can use to get an examiner ID, and then a createdSession which is maked as valid)

henrygoodman commented 1 year ago

This might be fine to leave as out-of-scope, there is more important functionality to consider