Skip to content

Patch that adds a registration code field to the CTFd platform

Notifications You must be signed in to change notification settings

chadpierce/CTFd-registration-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTFd Registration Patch

Note: This was tested with CTFd version 2.1.3

Official CTFd Site: https://ctfd.io
Official CTFd Github: https://github.com/CTFd/

Adds registration code field to registration page as seen here:

Registration Code

Also removes the oauth login option from reg and login pages

Replace these files in the Docker container:

  • CTFd/auth.py
  • CTFd/CTFd/themes/core/templates/register.html
  • CTFd/CTFd/themes/core/templates/login.html

Replace qwerty in line 167 of the 'auth.py' file with whatever you want the registration code to be:

reg_valid = regcode == "qwerty"

If the code does not match the user gets an error, if it does they can register

Share the code to whoever you'd like to be a member.

About

Patch that adds a registration code field to the CTFd platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published