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:
Also removes the oauth login option from reg and login pages
- 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.
