Skip to content

Commit

Permalink
No notify
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Oct 24, 2023
1 parent fad7acf commit 143cd2c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions totem/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

from totem.circles.filters import upcoming_events_user_can_attend
from totem.email import emails
from totem.utils.slack import notify_slack

from .forms import LoginForm
from .models import User
Expand Down Expand Up @@ -84,10 +83,6 @@ def form_valid(self, form):
return super().form_valid(form)


def _notify_slack():
notify_slack("Signup: A new person has signed up for ✨Totem✨!")


def login(email: str, request, after_login_url: str | None = None, mobile: bool = False) -> bool:
"""Login a user by sending them a login link via email. If it's a new user, log them in automatically and send them
a welcome email.
Expand All @@ -104,7 +99,6 @@ def login(email: str, request, after_login_url: str | None = None, mobile: bool
django_login(request, user, backend="django.contrib.auth.backends.ModelBackend")
# TODO make new welcome email. This one expires after 30min and doesn't make sense for a new user.
# emails.send_new_login_email(user.email, url)
_notify_slack()
else:
emails.send_returning_login_email(user.email, url)

Expand Down

0 comments on commit 143cd2c

Please sign in to comment.