aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-13 23:48:04 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-13 23:48:04 +0100
commitacc48c72620fe9bfdf3c72666d57af7e3c9306d0 (patch)
tree65f2a0314d227d94618d3356fd83e3ffd823ddb4
parentff8bf992a9048e55b58ece46cf25cc3a43edcef7 (diff)
downloadcheatdb-acc48c72620fe9bfdf3c72666d57af7e3c9306d0.tar.xz
Remove registering with username/email
-rw-r--r--app/views/users.py3
-rw-r--r--config.example.cfg3
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/users.py b/app/views/users.py
index d3ed1aa..e7306c1 100644
--- a/app/views/users.py
+++ b/app/views/users.py
@@ -11,9 +11,6 @@ from wtforms.validators import *
from .utils import rank_required, randomString
from app.tasks.forumtasks import checkForumAccount
-class MyRegisterForm(RegisterForm):
- display_name = StringField("Display name")
-
# Define the User profile form
class UserProfileForm(FlaskForm):
display_name = StringField("Display name")
diff --git a/config.example.cfg b/config.example.cfg
index eb4da8e..925da5c 100644
--- a/config.example.cfg
+++ b/config.example.cfg
@@ -11,3 +11,6 @@ GITHUB_CLIENT_SECRET = ""
BASE_URL="http://localhost:5000/"
UPLOAD_FOLDER="tmp"
+
+USER_ENABLE_REGISTER = False
+USER_ENABLE_CHANGE_USERNAME = False