Commit Graph

121 Commits

Author SHA1 Message Date
nemunaire 156a87abc0 admin/pki: use symlink instead of DB to associate certificate to team 2018-05-11 15:03:10 +02:00
nemunaire bcc598ebd5 Write docs! 2018-05-11 15:03:09 +02:00
nemunaire 62aea5413e use more official blake2b checksum 2018-05-11 05:27:51 +02:00
nemunaire 68e5c4cd2b pki: improve serial number generation + fix team association
Replace math/rand by crypto/rand.

Fix big when associating certificate with leading zero: nginx prepend 0 wherehas we don't.
2018-05-11 05:27:51 +02:00
nemunaire 1e36eb8b2f events.json: display 10 events instead of 6 2018-05-11 05:27:51 +02:00
nemunaire 91663f55af my-public.json: prefer display overview instead of statement, if available 2018-05-11 05:27:51 +02:00
nemunaire 3c8f9e55b6 db: allow multiple identical events 2018-05-11 05:27:51 +02:00
nemunaire 627c28cd94 libfic: don't show useless decimals to gain 2018-05-11 05:27:50 +02:00
nemunaire 6d1ef0f51c admin: new route to fill URLIds if they are not defined 2018-05-11 05:27:50 +02:00
nemunaire 8ae4d1c42f libfic: remove trailing - at the end of some urlids 2018-05-11 05:27:50 +02:00
nemunaire 3f1f60030c db: increase DB connection retries 2018-05-11 05:27:50 +02:00
nemunaire c118035c33 Introducing new PKI management 2018-05-11 05:27:50 +02:00
nemunaire 992221a6da Remove old PKI 2018-05-11 05:27:50 +02:00
nemunaire e083da2f72 Remove team's initial_name, replaced by their ID 2018-05-11 05:27:50 +02:00
nemunaire 0c540a39eb frontend: beautiful URLs 2018-01-26 12:02:32 +01:00
nemunaire 1eef71923a admin: new interface to manage claims 2018-01-18 12:08:12 +01:00
nemunaire 3932bba83d db: when DB is unreachable, retry 5 times before fatal return 2018-01-18 12:08:12 +01:00
nemunaire e7d3e34c0b libfic: explode theme file 2018-01-18 12:08:12 +01:00
nemunaire beba0a615f improve overall exercices interfaces 2018-01-18 12:08:12 +01:00
nemunaire 11d0fe8d1f admin/sync: handle hint files download 2018-01-18 12:08:12 +01:00
nemunaire 2aa1d6eeca libfic: fix bad hints displayed 2018-01-18 12:08:11 +01:00
nemunaire 9a1a64c41c admin: complet API and interface with files checking page 2018-01-18 12:08:11 +01:00
nemunaire 184714aeeb frontend: team registration 2018-01-18 12:08:11 +01:00
nemunaire ea3f3b709d admin/sync: import theme introductions 2018-01-18 12:08:10 +01:00
nemunaire e9910fe827 admin: can delete team history item 2018-01-17 18:52:48 +01:00
nemunaire a0737d91b9 libfic: force MySQL charset 2018-01-17 18:52:47 +01:00
nemunaire 4052969304 libfic/mcq: remove Kind, as we can only handle checkbox; another kind of record should be created to handle select/radio 2018-01-17 18:52:46 +01:00
nemunaire e630bc3d75 Improve bootstrap 4 support 2018-01-17 18:52:46 +01:00
nemunaire 838918da66 Exercice: add overview field
This field is use as a high level description of the exercice. It will be
displayed on the public interface only: not to players.
2018-01-17 18:52:45 +01:00
nemunaire 830dacd6f5 Save MCQ diff 2018-01-17 18:52:45 +01:00
nemunaire b079f7891c admin: sync mcq/ucq 2018-01-17 18:52:45 +01:00
nemunaire d6012dfffb frontend: display MCQ in interface 2018-01-17 18:52:45 +01:00
nemunaire 6903c91df2 Able to check MCQ 2018-01-17 18:52:44 +01:00
nemunaire c36cd202e8 libfic: start working on MCQ: structures done 2018-01-17 18:52:44 +01:00
nemunaire 9a9d5fcda4 libfic: Type key is now Label 2018-01-17 18:52:41 +01:00
nemunaire ae7e1ede14 libfic: increase authors field size 2018-01-17 18:52:40 +01:00
nemunaire 38d7cb00b6 libfic: add function to get exercice by title 2018-01-17 18:52:40 +01:00
nemunaire f97e114a81 libfic: add functions to wipe {files,hints,keys} 2018-01-17 18:52:40 +01:00
nemunaire 38a0f4c9b5 libfic: Add new row in exercices table, to store relative path to exercice 2018-01-17 18:52:40 +01:00
nemunaire 38606f28c7 libfic: new function to get theme by name 2018-01-17 18:52:39 +01:00
nemunaire 8f7de926d3 admin: Implement sychronization backends
We are now able, depending on configuration, to retrieve files from either WebDAV or local file system.
2018-01-17 18:52:39 +01:00
nemunaire 6237f7755a Change Key.Value to Key.Checksum 2018-01-17 18:52:39 +01:00
nemunaire b84fe87f48 New functions to get file by path 2018-01-17 18:52:39 +01:00
nemunaire cd5a9d06ea Define global default value at initialisation 2018-01-17 18:52:39 +01:00
nemunaire e6e6e6c206 Use BLAKE2b checksum instead of SHA-1 and SHA-512 2018-01-17 18:52:38 +01:00
nemunaire 41400a8710 admin: add history route in API 2018-01-17 18:52:37 +01:00
nemunaire 17d983221d libfic: split team removal in two requests 2018-01-17 18:52:36 +01:00
nemunaire 4a97b06520 Set SQL_MODES, waiting https://jira.mariadb.org/browse/MDEV-10426 to be solved 2018-01-17 18:52:35 +01:00
nemunaire d0f588e47d Generate DNS from env 2018-01-17 18:52:34 +01:00
nemunaire 4f6d4a82b0 db: add constraints to avoid multiple records of unique values 2018-01-17 18:52:32 +01:00