Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/d/j/django-pci-auth-0.0.6/django_pci_auth/views.py   django-pci-auth(Download)
from models import PasswordLog
from models import UserProfile
from utils import validate_field
 
 
def check_new_password1(request, password):
    errors = validate_field(password)
    if not errors:
        results = '<span class="alert alert-success">OK</span>'
    else:
    if 'new_password2' in password:
        password2 = password['new_password2']
    errors1 = validate_field(password1)
    errors2 = validate_field(password2)
    equal = password1 == password2