Skip to content

DB: Error fixes + functions

alin.bordei requested to merge database into main

Repaired dockerfile, it should work on all stations now. Added active/inactive to the user CTFs table. Modified login_user to push an error if the user is inactive. Modified add_ctf so that it put url_ctf and name_link as it should. Modified add_ctf so only admins can add ctfs. Modified add_event so only event_admins can add events. Modified get_user_details: added two new jsons that the function returns 1. "challanges": json[ctf_name: score] 2. "events": json["event_name" : value, "start_date": value, "end_date": value, "participants": value]

Merge request reports