Browse Source

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

Peter Thomassen 8 năm trước cách đây
mục cha
commit
a139f2b221

+ 1 - 1
api/desecapi/emails.py

@@ -9,7 +9,7 @@ def send_account_lock_email(request, user):
     from_tmpl = get_template('emails/from.txt')
     context = Context({
         '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),
                          content_tmpl.render(context),

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

@@ -1,6 +1,6 @@
 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
 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