diff options
-rw-r--r-- | account/views.py | 2 | ||||
-rw-r--r-- | sbhs_server/tables/models.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/account/views.py b/account/views.py index 4348842..51e73ff 100644 --- a/account/views.py +++ b/account/views.py @@ -135,7 +135,7 @@ def login(req): messages.add_message(req, messages.ERROR, "Invalid username or password.") return redirect(index) - is_authenticated = user.check_password(password)+ + is_authenticated = user.check_password(password) if is_authenticated: if user.is_active: diff --git a/sbhs_server/tables/models.py b/sbhs_server/tables/models.py index 7ab7966..7500c68 100644 --- a/sbhs_server/tables/models.py +++ b/sbhs_server/tables/models.py @@ -98,7 +98,7 @@ class Account(TrashableMixin, AbstractBaseUser): """ Function to show message to the user to confirm their account by visiting the link sent to their e-mail. """ - message = """Hi,\n\nPlease visit the link """ + settings.BASE_URL + """sbhs/account/confirm/""" + message = """Hi,\n\nPlease visit the link """ + settings.BASE_URL + """account/confirm/""" message = message + self.confirmation_token() message = message + """ to confirm your account.\n\n\nRegards,\nVlabs Team""" mailer.email(self.email, "Please confirm your account", message) @@ -139,7 +139,6 @@ class Slot(TrashableMixin): @staticmethod def indices(self, other): - These lines are irrelevant due to booking date scheme """ now = datetime.datetime.now() cur_hour = now.hour |