Commit Graph

621 Commits (56342bedc52c5b885df183ce7fbcab467b381623)

Author SHA1 Message Date
Kevin Chung fb5e525775 Merge pull request #11 from bburky/view-challenges-unregistered
Optionally allow unregistered users to view challenges
2015-01-08 00:13:39 -05:00
CodeKevin 7bb7186f8d Preventing unnecessary requests 2015-01-08 00:13:13 -05: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
Kevin Chung ce4766003a Admin teams javascript removes whitespace before opening modal 2015-01-07 21:12:52 -05:00
Kevin Chung a1f30547d2 Admins can edit users from the admin interface 2015-01-07 21:03:37 -05:00
CodeKevin 7c7632301f Closes #7
Stack trace only applies in debug mode which shouldn't be used in
production but password length bug is valid
2015-01-05 20:32:34 -05:00
Kevin Chung 7cf762a6c4 Merge pull request #6 from takeshixx/upstream-fixes
Missing dependencies added, some weird imports fixed
2015-01-02 18:48:40 -05:00
takeshix 88c79ec1a6 Missing dependencies added 2015-01-02 20:19:00 +01:00
Kevin Chung 16a344cfab Update setup.html
Spellcheck is your friend
2015-01-02 00:31:00 -05:00
CodeKevin 872e310380 Closes #5 2015-01-01 23:11:59 -05:00
Kevin Chung 0a75864ce4 Adding demo site 2015-01-01 21:16:16 -05:00
Kevin Chung 6705f97194 Merge pull request #4 from takeshixx/dev
Fixed permanent "referenced before assignment" condition
2015-01-01 20:47:58 -05:00
Kevin Chung 0c379e7444 Merge pull request #3 from mark-ignacio/pip-freeze
Freeze package + version requirements and changed pip install command
2015-01-01 20:47:11 -05:00
takeshix 65891ed215 Fixed permanent referenced before assignment condition 2015-01-02 01:12:17 +01:00
Mark Ignacio b5e98a414e add py-bcrypt 2015-01-01 18:08:50 -05:00
Mark Ignacio bd7c059ff9 freeze requirements and change pip install command 2015-01-01 18:01:01 -05:00
Kevin Chung 18c0afdd05 Closes #1
Missing bcrypt_sha256 import
2015-01-01 14:26:54 -05:00
Kevin Chung 24c5d37fa6 Update README.md 2015-01-01 00:52:09 -05:00
CodeKevin 376c90189b CTFd code push 2015-01-01 00:45:25 -05:00
Kevin Chung 20183dd3c9 Initial commit 2015-01-01 00:36:56 -05:00