Commit Graph

786 Commits (3f3109f589945f16a25079b02b74027979447745)

Author SHA1 Message Date
David Black 33710b864f When css is not set default it to an empty string instead of showing None. (#521)
Signed-off-by: David Black <dblack@atlassian.com>
2017-12-11 20:29:54 -05:00
Kevin Chung 3af98b17d5
Version 1.1 CTFd (#514)
* Bootstrap v4 (#490)
* Upgrading original theme to use Bootstrap v4 and overall improve use of utility classes
* Fixing graph issues. Colors per team & cleaner hover
* The solves tab now shows relative time instead of absolute time
* Redesign admin theme
* Updating modals and changing form name from desc to description
* Moving CSS config from Pages to Config page
* Adding IP address count to statistics
* Move control of certain modals (files, flags, tags, hints) to challenges page
* Expanding size of config page
* Combining statistics and graphs pages
* Moving percentage solved to the statistics page instead of the admin challenges page

* Rename Keys.key_type to Keys.type (#459) (#478)

* Rename keys.key_type to keys.type (#459)
* Fixing previous migration to not be worried about key_type v type

* Fixing loading of challenge type plugins

* Switching from Handlebars to Nunjucks (#491)

* Switching from Handlebars to Nunjucks
* Allow admins to unlock hints before CTF begins and test that this is not allowed for regular users

* Authed only (#492)

* Adding authed_only decorator and adding next to url_for

* Adding a basic preview to hints (#494)

* Hints have a preview now for creating and updating hints. HTML and markdown are still allowed.

* Ezq (#495)

* Adding ezq as a simple wrapper around bootstrap modals

* Use tabs not spaces and remove gray background on inputs

* Adding title & draft to Pages. Making page preview open a new tab (#497)

* Adding title & draft to Pages.
* Making page preview open a new tab instead of render in the existing tab
* Draft pages cannot be seen without a preview

* Update check (#499)

* Add update_check function
* Notify user that a CTFd update is available in the admin panel
* Adding update_check tests

* Ratelimit (#500)

* Implementing a ratelimit function 
* Fix error page formatting
* Add rate limiting tests
* Rate limit authentication functions and rate limit admin send email function

* Load user solves before we load challenges to avoid unstyled buttons (#502)

* Add a challenge preview (#503)

* Adding a challenge preview to the admin panel
* Change /admin/chals/<int:chalid> to /admin/chal/<int:chalid>

* Adding codecov (#504)

* Test coverage at https://codecov.io/gh/CTFd/CTFd

* Sendmail improvements (#505)

* Add get_smtp timeout, add sendmail error messages
* Adding more error handling to sendmail

* Adding Flask-Script (#507)

* Pause ctf (#508)

* Implement CTF pausing
* Test CTF pausing

* Fix loading challenges for users (#510)

* Fix loading challenges for users
* Temporarily switch themes in test

* Pause help text (#509)

* Adding pause help text

* Pages authed (#511)

* Adding authentication options to pages
* Adding tests for accessing pages while draft & auth_required

* Merging master into 1.1 (#513)

* Name the core theme and remove the original theme
2017-12-11 06:42:07 -05:00
Kevin Chung 4c0ae9f3b5
Fix migration upgrades (#512)
* Fixing migrations to not stamp before upgrading and fixing stamping CTFd from before migrations

* Making functions for upgrades

* Move migration stamp into confirm block
2017-12-07 03:06:48 -05:00
Kevin Chung db2e3b5684
Profile insertion check (#484)
* Test setting profile
* Fix issue with app_context altering database connections/state
2017-11-26 04:22:15 -05:00
Kevin Chung 46544e5729
Switching to Bento Ubuntu for VMWare support (#481) 2017-11-25 05:39:01 -05:00
uqam-fob 06b2856205 fix uploads folder detection (#433)
* Fix UPLOAD_FOLDER detection when run outside of repo directory
2017-11-23 03:53:01 -05:00
Kevin Chung 18dd715276
Workshop mode (#477)
* Implementing workshop mode
* Fixing a bug in /chals/solves where challenges with 0 solves weren't hidden.
* Spinner errors are now 20vh down instead of 210px down
* Users now use their private team endpoint at /team instead of /team/<id>
2017-11-22 03:33:48 -05:00
Kevin Chung e34902c491
Update downloaded fonts and use GoogleCDN for fonts if we are online (#476)
* Update the Lato and Raleway fonts and use Google Fonts if we're online but fallback if we're not
2017-11-22 01:27:15 -05:00
Kevin Chung 7348515e6c
34 reduce auth restrictions (#474)
* Disallow email-address team names & allow login with team name or email address
* Don't show password reset form if server isn't configured
* Add a message to contact admins instead of submit password reset form
* Add utils.check_email_format()
2017-11-21 22:20:31 -05:00
Jared Deckard e10c8b103b Admin Team List - New Team (#470)
* Allow admins to create teams manually
* Test an admin creating a team
2017-11-18 21:30:09 -05:00
Kevin Chung 0b0305f969
Adding tests for verify_emails and user_can_view_challenges are set (#462)
* Fixing verify_emails + user_can_view_challenges logic
* Adding tests for verify_emails and user_can_view_challenges
2017-11-15 03:33:50 -05:00
Kevin Chung ab2de6cf17
Optimize top10 call to make less db hits (#461)
Instead of making a database call every iteration of the for loop, just make the needed database calls once and then organize it into the right structure after we have everything.
2017-11-15 01:22:31 -05:00
Kevin Chung 647d8e0b2d
Fixing challenge creation test (#460) 2017-11-14 23:12:28 -05:00
Kevin Chung 6fbef4f32e
Allowing pages to have slashes in them but removing leading slashes (#457)
* Allowing pages to have slashes in them but removing leading slashes
* Add tests for pages
2017-11-14 22:31:59 -05:00
Kevin Chung f4aab70b32
Issue template (#455)
* Adding ISSUE_TEMPLATE
2017-11-14 16:40:36 -05:00
Kevin Chung 27b02da658
Update README.md 2017-11-13 01:45:13 -05:00
Tanner Glantz 303fc08fa8 fixing typo in readme (#450) 2017-11-11 12:43:33 -05:00
Kevin Chung 650593a32c
Add features list (#443)
* Add features list to README
2017-11-08 18:37:00 -05:00
Kevin Chung 117b43e3c5
Preventing Hints from being unlocked after the end of a CTF (#439)
* Preventing Hints from being unlocked after the end of a CTF unless challenges can be viewed
2017-11-08 02:13:07 -05:00
Kevin Chung 6f4a520241
Hidden challenges now return 404 and can't be solved (#432)
* Hidden challenges now return 404 and can't be solved
2017-10-28 13:31:34 -04:00
Kevin Chung b4f29e1450 Update CHANGELOG with missing changes 2017-10-25 16:01:54 -04:00
Kevin Chung c1895ef554 Marking 1.0.5 (#429)
* Update changelog
* Marking 1.0.5
2017-10-25 15:36:41 -04:00
Kevin Chung 654c2ca7b6 Don't render the mail server password on the config page (#428)
* Remove the currently set configuration if the checkbox is unchecked
* Closes #422
2017-10-25 13:56:04 -04:00
Kevin Chung 58e4cb8364 Fix some JS issues 2017-10-25 04:04:02 -04:00
Kevin Chung b5a383a2e1 Navbar links (#427)
* Adding config.json concept in lieu of config.html
* Add links to the admin menubar from a plugin
* Add links to the user navigation menubar from plugin
* Add tests for navbar links
* Closes #423
2017-10-25 00:05:27 -04:00
Kevin Chung 710ce6d500 Custom challenge tables (#425)
* Allows Challenges to have custom tables which allow them to have custom behavior 
* Adding create, update, delete staticmethods giving Challenge Types a static interface to implement
2017-10-24 21:06:56 -04:00
Kevin Chung cdc7a70fe7 Fixing migration script for upgrade (#417) 2017-10-17 23:56:07 -04:00
Kevin Chung 61045a435e Update README.md 2017-10-17 04:11:56 -04:00
Kevin Chung 39b9dc5945 Create a private team endpoint (#413)
* Adding private /team endpoint
2017-10-16 13:57:40 -04:00
Kevin Chung ef39c3ef41 Fixing users being able to see their own graphs when scores are hidden (#412) 2017-10-15 14:58:17 -04:00
Kevin Chung 066fbedd8b Pass all failure attempts to the challenge plugin (#411)
* Pass all failure attempts to the challenge plugin
2017-10-14 18:04:22 -04:00
Kevin Chung 4e80b514f4 Add plugin wrappers for plugin related utils functions (#410) 2017-10-14 17:17:06 -04:00
Kevin Chung 126144fcae Remove accidental export.zip file 2017-10-14 16:46:14 -04:00
Kevin Chung 6117699260 Use strings for key type (#409)
* Store key_type as string in the database
* Give keys plugin the ability to know where the modals are stored and pass this information to the client
2017-10-14 16:37:41 -04:00
Kevin Chung b4bdef966c Update requirements (#406)
* Updating to use dataset and datafreeze
     * Use a new datafreeze serializer to get around Python 3 issues. 
* Update requirements.txt
* Add simple test for export_ctf()
2017-10-07 21:29:03 -04:00
Kevin Chung 069526fc87 Update the amount of solves shown on the chal window when solves are listed (#403)
Closes #402
2017-10-06 16:38:49 -04:00
Kevin Chung 4862a3ca10 Fixing subdirectory deployment (#401)
* Fixing subdirectory deploy linking incorrectly (Closes #400)
* Fix some admin panel CSS
2017-10-05 23:14:36 -04:00
Kevin Chung 608d4f43d9 Adopting a challenge type layout from deckar01 (#399)
* Adopting a challenge type layout from deckar01
* Move standard challenge modals into the plugin
* Migration to change challenge type id to a string
* Travis testing now builds with MySQL, SQLite, and Postgres
* Rework get_standings to use the row ID instead of the saved time because of differences in database time precision
2017-10-05 21:39:28 -04:00
Kevin Chung faa84ff1e5 Adding functions to register plugin assets (#397)
* Adds functions to register plugin assets
2017-09-29 21:22:10 -04:00
Kevin Chung 0aae79d176 Remove spinners if there is no data, push footer down to the bottom (#396)
* Remove spinners if there is no data
* Push footer down to the bottom properly in the admin panel
2017-09-29 17:31:46 -04:00
Kevin Chung 897916b1b5 Mark prepare.sh executable 2017-09-27 22:32:01 -04:00
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 6c9b8af3c3 Reorder get config access (#389)
* Revert case insensitive config lookup
2017-09-15 17:39:24 -04:00
Kevin Chung c97e7c6edc Fixing issues with loading /chals when unregistered (#388) 2017-09-13 12:01:09 -04:00
Kevin Chung 3a8a7e5dd0 Fixing challenge ordering bug introduced (#385) 2017-09-13 02:18:00 -04:00
Kevin Chung 50ad759a19 Marking 1.0.4 2017-09-09 02:35:06 -04:00
Kevin Chung f98d675be9 Adding spinners to the scoregraph load and chalboard (#384)
* Adding spinners to the scoregraph load and chalboard
* Fixing challenges with zero solves in challenge board UI
* Add spinners for team page
* Adding spinners for admin interface
* Closes #66
2017-09-09 01:55:00 -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 d1ae613a33 Update get_config to check both upper & lower case, add more caching documentation, simplify example REDIS URL, and let us specify the REDIS_URL automatically (#381)
Closes #354
2017-09-08 00:53:01 -04:00