Commit Graph

132 Commits (a150abe00d5db43dd38a4d4531e39546e41a9475)

Author SHA1 Message Date
Kevin Chung a20e7eae63 Improve Challenge type plugin staticmethods (#394)
This passes more logic into the challenge classes so that it can be accessed by plugins
2017-09-27 17:01:58 -04:00
Kevin Chung c97e7c6edc Fixing issues with loading /chals when unregistered (#388) 2017-09-13 12:01:09 -04:00
Kevin Chung d49f37eac4 Fixing unlocking hints for challenges with unicode names (#383)
* Fixing unlocking hints for challenges with unicode names
* Add tests for unlocking hints with no cost
2017-09-09 00:17:48 -04:00
Kevin Chung 888b830488 Cleaning some challenge endpoints (#382)
* Cleaning some challenge endpoints
* Adding test for /chals/solves
2017-09-08 02:07:06 -04:00
Kevin Chung 2facb0ca8c Top ten endpoint honors users with the same name (#379)
* Make the /top/10 endpoint honor users with the same name
2017-09-07 23:29:41 -04:00
Kevin Chung 08f3496174 Plugins can register css files (#375)
* Adding functions to register CSS files
* Adding tests for script and stylesheet registering
2017-09-04 05:58:32 -04:00
Kevin Chung 6f60ddd2f5 Admins can bypass ctftime (#374)
* Admins can see/solve challenges regardless of ctftime
* Adding tests for ctftime based functionality
2017-09-04 05:03:06 -04:00
Kevin Chung 00c68dd239 Adding test for encoding emails with plus signs (#363) 2017-08-26 13:07:02 -04:00
Kevin Chung 732e343aea Pushing new tests and freezegun (#360) 2017-08-22 23:49:48 -04:00
Kevin Chung 2e41886591 Refactor Containers into a plugin (#348)
* Removing Containers code
* Closes #301
2017-08-20 19:40:46 -04:00
Kevin Chung 0aa0e9c5c1 Fixing email confirmation and adding more base64 tests (#344)
* Fixing email confirmation and adding more base64 tests
2017-08-09 05:31:00 -04:00
Kevin Chung 1a077f72ed Using a Python 3 compatible base64 encoder and fixing verify_emails in Python 3 (#336) 2017-08-09 04:17:10 -04:00
Kevin Chung 7aa6204116 Users should always be able to get their score, even if banned (#333)
* Users should always be able to get their score, even if banned
* Fixing scoring logic when users haven't solved problems
* Hide None descriptions for awards
2017-08-06 19:33:02 -04:00
Kevin Chung d84cd305f8 Fixing scoring logic (#320)
* fix inconsistent scoring: take awards into account in user.place() (#319)
* Adding tests
2017-07-17 22:18:23 -04:00
Kevin Chung b900d1cb68 Fixes #315 (#316)
CTFd creates the database instead of the docker-compose files which allows us to control encoding. Also adds a test for registering with a unicode team name.
2017-07-16 02:50:32 -04:00
Kevin Chung 92f130d5de Fixing large ip solves (#307)
* Switching to using strings to store IP addresses because of the issues with storing them properly, Fixes #302, Fixes $306
* Only runs migrations when using a real database because SQlite is too inflexible to support migrations properly
* Removes calls to the ip helper functions but they can remain in case someone needs them in a plugin.
2017-07-08 17:53:14 -04:00
Kevin Chung 7d5537e1df Adding SMTP sendmail unit test (#299) 2017-07-01 12:36:02 -04:00
Kevin Chung 95245d2ab5 Send confirmation emails on register and add button to resend email (#298)
* Fixes #293
* Adding get_config/set_config test
2017-07-01 01:37:08 -04:00
Kevin Chung f1e339c3dc Adding override_template function (#297)
Purely for use by plugins to replace templates in an existing theme
2017-06-27 21:09:38 -04:00
Kevin Chung b6ce783cfd Fixes unstyled Setup UI (#291)
* Changing /static to /themes
* Adding test to make sure setup behavior works
2017-06-18 18:54:20 -04:00
Kevin Chung 1bbd7feb23 Moving themes into a themes folder (#287)
* Moving themes into a themes folder

This unifies themes under a themes folder which makes it easier to develop themes and install them.
2017-06-18 02:13:50 -04:00
Kevin Chung 202e8493b1 Give ip2long and long2ip ipv6 support (#271)
Improved ipv6 support in the `ip2long` and `long2ip` helper functions
2017-06-05 02:42:11 -04:00
Kevin Chung 6d9d03e35e Pages functionality improved (#267)
* Pages now support Markdown
* Pages now have a preview tab
* Adding a media library to Pages
2017-06-03 14:25:31 -04:00
Kevin Chung 59afacce69 Fixes #261 and generally supports Unicode better in Python 2 (#263)
* Fixing #261 and improving Unicode in Python2
* Fixing PEP8 issues
2017-05-21 12:43:31 -04:00
Kevin Chung e16d3a0b6e General fixes and PEP8 enforcement (#258)
* Fixing index page links when you deploy on a subdirectory

* Updating travis for pep8

* autopep8 with just formatting changes
2017-05-12 00:34:20 -04:00
Kevin Chung f48a0cdacd Hints (#232)
* Switching to Flask-Migrate to create tables/database. Adding Hints & Unlocks.
* Adding db.create_all call for sqlite db's (sqlite is not properly handled with alembic yet)
* Python 3 testing works properly with 3.5
* Adding admin side of hints
* Hints are viewable for users
2017-03-28 21:17:56 -04:00
Kevin Chung a3a7d75ae8 Plugins enhanced utils (#231)
* Updating utils functions to be monkey patchable

* Also fixing a team email update issue

* Adding more tests
2017-03-22 20:00:45 -04:00
Kevin Chung 06d0e00cf5 Fixes Python 3 compatibility for testing (#230)
* Testing 3.6

* Fixing Python 3 testing

* Fixing both kinds of tests :)

* PEP8 lint project and add linting checks to build process (#229)

* Revert "PEP8 lint project and add linting checks to build process (#229)"

This reverts commit 15d89d2b66030cdc2a6276b0a73acaa4912c06ab.
2017-03-12 19:53:26 -04:00
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
Kevin Chung 397eb95dd7 Adding test_user_login 2017-01-07 11:48:10 -05:00
Kevin Chung 28d8a02ec6 Starting to write tests
test_index
test_register_user
test_user_isnt_admin
2017-01-07 02:44:31 -05:00