mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
xReactivation du sendmail
This commit is contained in:
parent
c0f1eb7acf
commit
ec076fb4bf
1 changed files with 24 additions and 24 deletions
|
@ -548,15 +548,15 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, PermissionsMix
|
|||
'welcome_mail_en': mailmessageoptions.welcome_mail_en,
|
||||
'pseudo': self.pseudo,
|
||||
})
|
||||
#send_mail(
|
||||
# 'Bienvenue au %(name)s / Welcome to %(name)s' % {
|
||||
# 'name': AssoOption.get_cached_value('name')
|
||||
# },
|
||||
# '',
|
||||
# GeneralOption.get_cached_value('email_from'),
|
||||
# [self.email],
|
||||
# html_message=template.render(context)
|
||||
#)
|
||||
send_mail(
|
||||
'Bienvenue au %(name)s / Welcome to %(name)s' % {
|
||||
'name': AssoOption.get_cached_value('name')
|
||||
},
|
||||
'',
|
||||
GeneralOption.get_cached_value('email_from'),
|
||||
[self.email],
|
||||
html_message=template.render(context)
|
||||
)
|
||||
return
|
||||
|
||||
def reset_passwd_mail(self, request):
|
||||
|
@ -576,14 +576,14 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, PermissionsMix
|
|||
reverse('users:process', kwargs={'token': req.token})),
|
||||
'expire_in': str(GeneralOption.get_cached_value('req_expire_hrs')) + ' heures',
|
||||
}
|
||||
#send_mail(
|
||||
# 'Changement de mot de passe du %(name)s / Password\
|
||||
# renewal for %(name)s' % {'name': AssoOption.get_cached_value('name')},
|
||||
# template.render(context),
|
||||
# GeneralOption.get_cached_value('email_from'),
|
||||
# [req.user.email],
|
||||
# fail_silently=False
|
||||
#)
|
||||
send_mail(
|
||||
'Changement de mot de passe du %(name)s / Password\
|
||||
renewal for %(name)s' % {'name': AssoOption.get_cached_value('name')},
|
||||
template.render(context),
|
||||
GeneralOption.get_cached_value('email_from'),
|
||||
[req.user.email],
|
||||
fail_silently=False
|
||||
)
|
||||
return
|
||||
|
||||
def autoregister_machine(self, mac_address, nas_type):
|
||||
|
@ -1127,13 +1127,13 @@ class Ban(RevMixin, AclMixin, models.Model):
|
|||
'date_end': self.date_end,
|
||||
'asso_name': AssoOption.get_cached_value('name'),
|
||||
})
|
||||
#send_mail(
|
||||
# 'Deconnexion disciplinaire',
|
||||
# template.render(context),
|
||||
# GeneralOption.get_cached_value('email_from'),
|
||||
# [self.user.email],
|
||||
# fail_silently=False
|
||||
#)
|
||||
send_mail(
|
||||
'Deconnexion disciplinaire',
|
||||
template.render(context),
|
||||
GeneralOption.get_cached_value('email_from'),
|
||||
[self.user.email],
|
||||
fail_silently=False
|
||||
)
|
||||
return
|
||||
|
||||
def is_active(self):
|
||||
|
|
Loading…
Reference in a new issue