Commit Graph

35 Commits

Author SHA1 Message Date
Kevin Chung
935027c55d Marking 1.0.0 (#196)
* Use <int:xxx> in routes to prevent some errors 500 (#192)

* Use first_or_404() to prevent some errors 500 (#193)

* Add a populating script for awards. (#191)

* Creating upload_file util

* Marking 1.0.0 in __init__ and starting database migrations

* Upgrading some more HTML

* Adding CHANGELOG.md
2017-01-24 23:06:16 -05:00
Kevin Chung
fa788fe3d0 Latest set of changes (#190)
* PEP 8 compliance (#183)

* Group imports: standard library, third party, local
* Remove unnecessary spaces
* Comments should start with a # and a single space

* Adding tests for GETs on user facing pages

* Adding more user facing tests

51% test coverage

* Fixes #182

* Cleaning up Pages

Fixes a bug with CSS updating
2017-01-10 03:35:48 -05:00
Victor "Nate" Graf
22f57751e0 Closes #169
Changed the /chals/colves endpoint and associated javascript to
index solves by challenge id rather than by challenge name

Closes (#169)
2016-12-08 00:26:03 -05:00
Kevin Chung
9fc83b636c Closes #164
Adds support for unicode keys
2016-11-29 01:02:24 -05:00
Kevin Chung
52ad396db4 Adding file handler 2016-11-05 00:54:21 -04:00
Kevin Chung
11e3ef66b4 Fixing view challenges before CTF started if view_after_ctf is enabled 2016-11-04 21:02:27 -04:00
Kevin Chung
0f541a5b3b Accidentally broke graphs for public viewing 2016-09-28 20:40:20 -04:00
Kevin Chung
50043b42c5 Merging changes from various forks
Until v1 is released all changes are fair game.

Caching support
Fixes for decoding confirmation and reset_password email tokens
Starting work on #154 specifying why challenges are not open
Adding a required parameter to HTML to sort of fix #153
Adding a column to specify when a team registered
Check static key by default in new key
Decreasing capability of pages functionality to address security
concerns
Fixing confirmations restrictions by modifying can__view_challenges()
2016-09-24 17:56:07 -04:00
Kevin Chung
b05f6152d3 Custom themes (#131)
* Adding preliminary custom themes

* Fixing Windows compatibility

https://github.com/pallets/jinja/issues/411

* Fixing template reloading and adding UI to change themes

* Explicitly closing db connections

* Themes now have custom static folders

* Closes #128
2016-07-22 02:46:14 -04:00
Robert Blair Mason Jr
6b2257236f Allow CTFd to run with script_root != '/' and PostgreSQL (#125)
Also, Add WSGI config example
2016-06-22 00:18:09 -04:00
CodeKevin
d04fd0f5bf Users with no awards 2016-05-23 20:20:39 -04:00
Nick Gregory
2ba89613e0 Added defaults to Team boolean columns. Switched comparisons of these columns from ==None to ==False 2016-05-12 17:23:16 -04:00
Kevin Chung
d2778c30ad Adding container support 2016-05-07 16:38:10 -04:00
CodeKevin
e4e989a0a5 Fixing and cleaning graphs to reflect awards 2016-04-30 13:20:30 -04:00
CodeKevin
d129a251d0 Considering old challenge hidden value 2016-04-20 14:38:48 -04:00
CodeKevin
6308165dea Adding ability to hide challenges 2016-04-20 14:22:17 -04:00
CodeKevin
4ae11cf7fe Adding email verification
This commit has some model changes. It could be difficult to upgrade to
this commit.
2016-02-18 02:30:05 -05:00
Kevin Chung
fe2abca911 Closes #88 2016-02-08 17:52:01 -05:00
CodeKevin
85e8a9d271 Closes #61, #85
Whitelist localhost
2016-02-06 15:05:49 -05:00
CodeKevin
3841322e2d Challenge tags now work 2016-02-05 23:18:36 -05:00
Chris Frohoff
d5f3f369bf fix for lowercase comparison bug 2016-02-02 09:19:08 -08:00
CodeKevin
ac6e5b8c4f Replacing hardcoded redirects with url_for() 2016-01-08 21:28:59 -05:00
Kevin Chung
df21544f13 Supports PY3, refinements to chal editor and viewer, model changes to resolve issues 2015-10-10 21:09:25 -04:00
CodeKevin
7d766372df Bugfixes and architectural changes
Moved some folders around, starting to remove subdomain handling,
blueprints, custom css, removed digital ocean interface, fixed some bugs
2015-09-13 23:55:22 -04:00
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