Commit graph

42 commits

Author SHA1 Message Date
3f1632af2b Add Update function to the client 2020-12-29 18:16:45 +01:00
Andrea Fazzi
9d99f56385 Improve error handling and handle errors in token 2020-02-19 14:57:31 +01:00
edc5b957e0 Fixing error templates 2020-02-19 11:19:47 +01:00
cb44b1b4f6 Role checking template functions now return errors 2020-02-19 09:15:50 +01:00
Andrea Fazzi
2be776305f Add env var to skip captcha when regression testing 2020-02-12 11:14:04 +01:00
1bb38bb002 School subscription captcha first iteration 2020-02-12 09:50:35 +01:00
b06eba6698 Protect responses from participants 2020-02-05 10:10:27 +01:00
Andrea Fazzi
b9e6c5dbe1 Fix ambiguity between user_id and model_id in user token 2020-02-03 14:13:01 +01:00
4823379f42 Encode form values in gen_targets 2020-01-31 15:03:26 +01:00
Andrea Fazzi
10b4e94bd4 Allow login_session to by passed in the url query string 2020-01-29 11:49:05 +01:00
f5781db5b0 Add error for question order string empty 2020-01-28 17:01:24 +01:00
55a3605bd0 Implement a template for errors 2020-01-28 14:36:31 +01:00
Andrea Fazzi
5616fce5b4 Use referer in error template 2020-01-28 09:36:57 +01:00
Andrea Fazzi
f9164034dd Fix test, improve error handling 2020-01-27 13:15:51 +01:00
43952efd77 Fixing tests 2020-01-24 12:04:12 +01:00
ca17d60709 Refactoring handlers 2020-01-24 07:15:23 +01:00
2ece2dcba4 Fix tests 2020-01-23 17:54:41 +01:00
Andrea Fazzi
819a3caad6 Refactor error handling 2020-01-23 12:50:50 +01:00
Andrea Fazzi
ae15f35792 Autocreate response only when logged as administrator 2020-01-23 10:23:06 +01:00
Andrea Fazzi
75ce2c54ab Improve comment 2020-01-20 12:54:57 +01:00
420eae4cf4 Add contest director and school responsible 2020-01-20 12:07:02 +01:00
Andrea Fazzi
d1a7d1a0db Add test for create school as admin 2020-01-17 12:53:35 +01:00
7f20441abf Working on tests 2020-01-17 12:11:13 +01:00
Andrea Fazzi
d85f66d256 Fix tests 2020-01-17 11:06:28 +01:00
06f96f1ccc Move PathPattern into config package 2020-01-17 07:59:57 +01:00
Andrea Fazzi
8a4afd970e Working on better path patterns 2020-01-16 12:47:35 +01:00
82de4b68fb Completed renderer, orm and mail sender refactoring 2020-01-15 13:40:35 +01:00
3bb8dde670 Encapsulate orm behaviour in the Database struct 2020-01-15 11:27:00 +01:00
2ad7e3d180 Working on db refactoring 2020-01-14 16:28:27 +01:00
Andrea Fazzi
3f61d86465 Begin handler refactor 2020-01-14 09:43:27 +01:00
Andrea Fazzi
3e8300c2a3 Fixing global vars in handlers 2020-01-13 16:33:20 +01:00
766ba387a6 import_contest prototype script 2020-01-08 15:41:04 +01:00
Andrea Fazzi
a590a57b65 Working on http client 2020-01-02 13:01:21 +01:00
Andrea Fazzi
7df11d017d Protect API handler with role filters 2020-01-02 09:48:20 +01:00
Andrea Fazzi
e94c4b9afa Protect POST, DELETE routes 2019-12-19 13:56:54 +01:00
Andrea Fazzi
98114bfab1 Add role.go 2019-12-04 12:20:34 +01:00
Andrea Fazzi
519f6438b5 Working on authorization 2019-12-04 10:11:18 +01:00
Andrea Fazzi
1600110f6d Subscriber role 2019-12-03 15:24:01 +01:00
Andrea Fazzi
65f0aeadd0 Introducing flash messages and i18n support 2019-12-03 11:14:29 +01:00
Andrea Fazzi
17f1be188e Refactor login.go 2019-11-22 11:16:27 +01:00
Andrea Fazzi
a33cd9ac2d Quick prototyping of user authentication/authorization 2019-11-18 12:40:28 +01:00
Andrea Fazzi
6dbbc350bc First commit 2019-11-04 15:00:46 +01:00