8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

xReactivation du sendmail

This commit is contained in:
Gabriel Detraz 2018-04-03 04:58:00 +02:00 committed by chirac
parent c0f1eb7acf
commit ec076fb4bf

View file

@ -548,15 +548,15 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, PermissionsMix
'welcome_mail_en': mailmessageoptions.welcome_mail_en, 'welcome_mail_en': mailmessageoptions.welcome_mail_en,
'pseudo': self.pseudo, 'pseudo': self.pseudo,
}) })
#send_mail( send_mail(
# 'Bienvenue au %(name)s / Welcome to %(name)s' % { 'Bienvenue au %(name)s / Welcome to %(name)s' % {
# 'name': AssoOption.get_cached_value('name') 'name': AssoOption.get_cached_value('name')
# }, },
# '', '',
# GeneralOption.get_cached_value('email_from'), GeneralOption.get_cached_value('email_from'),
# [self.email], [self.email],
# html_message=template.render(context) html_message=template.render(context)
#) )
return return
def reset_passwd_mail(self, request): def reset_passwd_mail(self, request):
@ -576,14 +576,14 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, PermissionsMix
reverse('users:process', kwargs={'token': req.token})), reverse('users:process', kwargs={'token': req.token})),
'expire_in': str(GeneralOption.get_cached_value('req_expire_hrs')) + ' heures', 'expire_in': str(GeneralOption.get_cached_value('req_expire_hrs')) + ' heures',
} }
#send_mail( send_mail(
# 'Changement de mot de passe du %(name)s / Password\ 'Changement de mot de passe du %(name)s / Password\
# renewal for %(name)s' % {'name': AssoOption.get_cached_value('name')}, renewal for %(name)s' % {'name': AssoOption.get_cached_value('name')},
# template.render(context), template.render(context),
# GeneralOption.get_cached_value('email_from'), GeneralOption.get_cached_value('email_from'),
# [req.user.email], [req.user.email],
# fail_silently=False fail_silently=False
#) )
return return
def autoregister_machine(self, mac_address, nas_type): def autoregister_machine(self, mac_address, nas_type):
@ -1127,13 +1127,13 @@ class Ban(RevMixin, AclMixin, models.Model):
'date_end': self.date_end, 'date_end': self.date_end,
'asso_name': AssoOption.get_cached_value('name'), 'asso_name': AssoOption.get_cached_value('name'),
}) })
#send_mail( send_mail(
# 'Deconnexion disciplinaire', 'Deconnexion disciplinaire',
# template.render(context), template.render(context),
# GeneralOption.get_cached_value('email_from'), GeneralOption.get_cached_value('email_from'),
# [self.user.email], [self.user.email],
# fail_silently=False fail_silently=False
#) )
return return
def is_active(self): def is_active(self):