Exemple #1
0
 def save(self, commit=True):
     user = super(UpdatePasswordForm, self).save(commit=commit)
     from htk.apps.accounts.emails import password_changed_email
     try:
         password_changed_email(user)
     except:
         request = get_current_request()
         rollbar.report_exc_info(request=request)
     return user
Exemple #2
0
 def save(self, user, *args, **kwargs):
     user = super(ChangePasswordForm, self).save(*args, **kwargs)
     try:
         password_changed_email(user)
     except:
         from htk.utils.request import get_current_request
         request = get_current_request()
         extra_data = {
             'user' : user,
             'email' : user.profile.confirmed_email or email,
         }
         rollbar.report_exc_info(request=request, extra_data=extra_data)
     return user
Exemple #3
0
 def save(self, user, *args, **kwargs):
     super(ChangePasswordForm, self).save(*args, **kwargs)
     password_changed_email(user)
Exemple #4
0
 def save(self, user, *args, **kwargs):
     user = super(ChangePasswordForm, self).save(*args, **kwargs)
     password_changed_email(user)
     return user