diff --git a/app/models.py b/app/models.py index 67a66773..5a4cfac1 100644 --- a/app/models.py +++ b/app/models.py @@ -121,12 +121,15 @@ class User(db.Model, UserMixin): packages = db.relationship("Package", backref="author", lazy="dynamic") requests = db.relationship("EditRequest", backref="author", lazy="dynamic") - def __init__(self, username): + def __init__(self, username, active=False, email=None, password=None): import datetime self.username = username self.confirmed_at = datetime.datetime.now() - datetime.timedelta(days=6000) self.display_name = username + self.active = active + self.email = email + self.password = password self.rank = UserRank.NOT_JOINED def canAccessTodoList(self): diff --git a/app/templates/users/claim.html b/app/templates/users/claim.html index f561a891..ae8e9c99 100644 --- a/app/templates/users/claim.html +++ b/app/templates/users/claim.html @@ -95,5 +95,21 @@ Creating an Account + +
+ Only do this if you don't have a forum account! +
++ If you have a forum account, please use one of the other two + options. +
+ + Register +