Browse Source

fix(api): only send welcome mail on registration, not on unlock

Peter Thomassen 6 years ago
parent
commit
2d88acbba9
1 changed files with 0 additions and 3 deletions
  1. 0 3
      api/desecapi/views.py

+ 0 - 3
api/desecapi/views.py

@@ -576,9 +576,6 @@ def unlock(request, email):
                 user = User.objects.get(email=email)
                 if user.locked:
                     user.unlock()
-                    if not user.dyn:
-                        context = {'token': user.get_or_create_first_token()}
-                        send_token_email(context, user)
             except User.DoesNotExist:
                 # fail silently, so people can't probe registered addresses
                 pass