Browse Source

fix(api): generalize captcha email to DNS beyond dedyn.io

Peter Thomassen 8 years ago
parent
commit
a139f2b221
2 changed files with 2 additions and 2 deletions
  1. 1 1
      api/desecapi/emails.py
  2. 1 1
      api/desecapi/templates/emails/captcha/content.txt

+ 1 - 1
api/desecapi/emails.py

@@ -9,7 +9,7 @@ def send_account_lock_email(request, user):
     from_tmpl = get_template('emails/from.txt')
     from_tmpl = get_template('emails/from.txt')
     context = Context({
     context = Context({
         'url': reverse('unlock/byEmail', args=[user.email], request=request),
         'url': reverse('unlock/byEmail', args=[user.email], request=request),
-        'domainname': user.domains[0].name if user.domains.count() > 0 else 'deSEC dedyn.io'
+        'domainname': user.domains[0].name if user.domains.count() > 0 else 'deSEC DNS'
     })
     })
     email = EmailMessage(subject_tmpl.render(context),
     email = EmailMessage(subject_tmpl.render(context),
                          content_tmpl.render(context),
                          content_tmpl.render(context),

+ 1 - 1
api/desecapi/templates/emails/captcha/content.txt

@@ -1,6 +1,6 @@
 Hello,
 Hello,
 
 
-Your activity on the deSEC dedyn.io dynamic DNS service looks
+Your activity on the deSEC DNS service (e.g. dedyn.io) looks
 suspiciously similar to the one of bots. As mass registrations
 suspiciously similar to the one of bots. As mass registrations
 by bots have been a problem for us in the past, we need to
 by bots have been a problem for us in the past, we need to
 ask you to prove you are not a bot by solving a CAPTCHA. Sorry
 ask you to prove you are not a bot by solving a CAPTCHA. Sorry