Browse Source

move confirmation mail to customization

parent
commit
935f189d96
No known key found for this signature in database
1 changed files with 1 additions and 25 deletions
  1. 1
    25
      c3smembership/views/afm.py

+ 1
- 25
c3smembership/views/afm.py View File

@@ -541,32 +541,8 @@ def success_check_email(request):
541 541
         except:
542 542
             return HTTPFound(location=request.route_url('join'))
543 543
 
544
-        if 'de' in appstruct['person']['locale']:
545
-            the_mail_body = u'''
546
-Hallo {} {}!
547 544
 
548
-bitte benutze diesen Link um deine E-Mail-Adresse zu bestätigen
549
-und dein PDF herunterzuladen:
550
-
551
-   {}/verify/{}/{}
552
-
553
-Danke!
554
-
555
-Dein C3S Team
556
-            '''
557
-        else:
558
-            the_mail_body = u'''
559
-Hello {} {}!
560
-
561
-please use this link to verify your email address
562
-and download your personalised PDF:
563
-
564
-   {}/verify/{}/{}
565
-
566
-thanks!
567
-
568
-Your C3S team
569
-            '''
545
+        the_mail_body = customization.address_confirmation_mail.get(appstruct['person']['locale'],'en')
570 546
         the_mail = Message(
571 547
             subject=request.localizer.translate(_(
572 548
                 'check-email-paragraph-check-email-subject',

Loading…
Cancel
Save