No Password E-mail

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import sys
from django.core.handlers.base import BaseHandler

class NoPasswordExceptionMiddleware():
    def process_exception(self, request, exception):
        if 'password' in request.POST.keys():
            post = request.POST.copy()
            post['password']='********************'
            request.POST = post
        b=BaseHandler()
        exc_info = sys.exc_info()
        b.handle_uncaught_exception(request,exception,exc_info)

More like this

  1. Use email addresses for user name for django 1.3 by kidzik 1 year, 11 months ago
  2. Authenticate against Active Directory - LDAP (my version) by trebor74hr 4 years, 1 month ago
  3. Mask sensitive POST fields in error e-mails by derivin 5 years, 2 months ago
  4. Email or username authentication with masquerading by petrilli 3 years, 11 months ago
  5. PowerDNS models by diverman 3 years, 11 months ago

Comments

(Forgotten your password?)