Commit Graph

11 Commits

Author SHA1 Message Date
Kevin Chung
4c0ea9b760 Merge pull request #42 from slinkymanbyday/view_keys_interface
view incorrect/correct key submission interfaces
2015-09-13 20:43:38 -04:00
Kevin Chung
1685a528b8 Fixing view CTF after end and making it less confusing 2015-09-10 22:12:41 -04:00
Sean Meyer
58d265a4d0 Merge branch 'master' of https://github.com/isislab/CTFd into view_challs_after
Conflicts:
	CTFd/admin.py
	CTFd/challenges.py
2015-05-20 09:57:04 +08:00
Sean Meyer
5a8211ea6d View after CTF 2015-05-20 09:51:27 +08:00
Sean Meyer
18ddd1eeec Key submission now stored. Correct key submissions can be deleted. 2015-05-19 13:52:15 +08:00
Sean Meyer
db687b6c25 enable max-attempts per challenge setting 2015-05-18 11:31:43 +08:00
Kevin Chung
be6430be4f Allowing admins to preview challenge board 2015-05-09 23:33:20 -04:00
Blake Burkhart
2972cf506d Optionally allow unregistered users to view challenges
Add a Config entry `view_challenges_unregistered` to indicate whether
unregistered users can view challenges. Add the setting to the admin config
page.

Add can_view_challenges() to utils to test if a user is either authed, or the
configuration allow unauthenticated users to view the challenges.

Return a HTTP 401 Unauthorized error when the /chals/solves API can't provide
results for an unauthenticated user. This is needed because the client side
code in `chalboard.js` doesn't know if it's logged in or not and requests this
anyway. (And AJAX doesn't handle redirects very well.) Alternately the client
could actually know if they're logged in and not make needless API calls.

When an unregistered user attempts to submit a flag, it will also fail. The
user will be redirected to a login page.
2015-01-07 22:11:31 -06:00
Kevin Chung
c5c3126bb4 Closes #10 2015-01-07 21:32:31 -05:00
takeshix
88c79ec1a6 Missing dependencies added 2015-01-02 20:19:00 +01:00
CodeKevin
376c90189b CTFd code push 2015-01-01 00:45:25 -05:00