Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias identifier Import alias identifier ImportFrom alias identifier ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot BoolOpAnd Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad body Raise Call AttributeLoad NameLoad attr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Return SubscriptLoad AttributeLoad NameLoad attr Index Str Raise Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Num keyword Str keyword Dict Str Str ClassDef bases body Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str decorator_list decorator_list Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad Str NameLoad body Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Num Num Call AttributeLoad NameLoad attr Num Num If CompareGt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareNotEq NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A N/A 
Account-related forms.

 N/A operator N/A random django.conf settings django.contrib.auth forms auth_forms N/A floppyforms.__future__ forms registration forms registration_forms moztrap model check_password N/A N/A pw N/A N/A N/A 
    Enforce password strength rules.

    Returns the password if it passes, otherwises raises ``ValidationError``.

     N/A N/A N/A len pw N/A settings MINIMUM_PASSWORD_CHARS N/A N/A N/A N/A forms ValidationError N/A N/A Your password must be a minimum of {0} characters. format N/A settings MINIMUM_PASSWORD_CHARS N/A N/A N/A settings PASSWORD_REQUIRE_ALPHA_NUMERIC N/A N/A N/A any N/A N/A N/A c isdigit N/A c pw N/A any N/A N/A N/A c isalpha N/A c pw N/A N/A N/A N/A forms ValidationError Your password must contain both letters and numbers. N/A N/A pw N/A settings FORBIDDEN_PASSWORDS N/A N/A N/A N/A forms ValidationError That password is too easily guessed; please choose a different one. N/A pw N/A SetPasswordFormMixin N/A object N/A N/A 
    Mixin class for password-changing forms.

    Enforces password strength rules, sets label for password confirmation
    field.

     __init__ N/A N/A self N/A args kwargs N/A N/A After form initialization, change label for new_password2 field. N/A N/A N/A N/A super SetPasswordFormMixin self __init__ args kwargs N/A N/A N/A N/A self fields N/A new_password2 label New password (again) N/A clean_new_password1 N/A N/A self N/A N/A N/A Enforce minimum password strength rules. N/A N/A check_password N/A N/A self cleaned_data N/A new_password1 N/A N/A SetPasswordForm N/A SetPasswordFormMixin N/A auth_forms SetPasswordForm N/A N/A N/A ChangePasswordForm N/A SetPasswordFormMixin N/A auth_forms PasswordChangeForm N/A N/A N/A RegistrationForm N/A N/A registration_forms RegistrationForm N/A N/A A registration form that enforces our password rules. clean_password1 N/A N/A self N/A N/A N/A Enforce minimum password strength rules. N/A N/A check_password N/A N/A self cleaned_data N/A password1 N/A clean_email N/A N/A self N/A N/A N/A 
        Validate that the email is not already in use.

         N/A N/A N/A N/A N/A N/A N/A model User objects get email N/A N/A self cleaned_data N/A email N/A N/A N/A N/A N/A model User DoesNotExist N/A N/A N/A N/A self cleaned_data N/A email N/A N/A N/A forms ValidationError A user with that email already exists. N/A N/A PasswordResetForm N/A N/A auth_forms PasswordResetForm N/A N/A A password reset form that doesn't reveal valid users. clean_email N/A N/A self N/A N/A N/A No validation that the email address exists. N/A N/A N/A self cleaned_data N/A email N/A save N/A N/A self N/A args kwargs N/A N/A Fetch the affected users here before sending reset emails. N/A email N/A N/A self cleaned_data N/A email N/A N/A self users_cache N/A N/A N/A N/A model User objects filter email__iexact email is_active True N/A N/A N/A N/A super PasswordResetForm self save args kwargs N/A N/A SetUsernameForm N/A N/A forms ModelForm N/A N/A A form for a user with an auto-username to pick one. N/A username N/A N/A forms RegexField regex ^[\w.@+-]+$ max_length 30 label Username error_messages N/A invalid This value must contain only letters, numbers and underscores. Meta N/A N/A N/A model N/A model User N/A fields N/A username N/A __init__ N/A N/A self N/A args kwargs N/A N/A Clear the initial value of the username field. N/A N/A N/A N/A super SetUsernameForm self __init__ args kwargs N/A N/A N/A self initial N/A username N/A N/A N/A OPERATORS N/A plus minus times N/A operator add N/A operator sub N/A operator mul N/A CAPTCHA_SESSION_KEY auth_captcha_answer CaptchaAuthenticationForm N/A N/A auth_forms AuthenticationForm N/A N/A 
    Login form with a simple math captcha.

    For use when there have been too many failed login attempts from a
    particular IP address or for a particular username. Simply locking users
    out in this case creates a potential Denial of Service vulnerability; a
    captcha allows a human to still log in but makes life more difficult for
    the brute-force attacker.

    Expected answer to captcha is stored in the session; this avoids replay
    attacks and the need to trust client input, at the cost of somewhat higher
    likelihood of spurious failure, e.g. if the user opens up captcha login
    forms in two tabs and then tries to use the first one.

     __init__ N/A N/A self request N/A None args kwargs N/A N/A Initialize form, including captcha question and expected answer. N/A N/A N/A N/A super CaptchaAuthenticationForm self __init__ args kwargs N/A N/A self captcha_answer N/A N/A N/A request session get CAPTCHA_SESSION_KEY N/A N/A getattr request limited False N/A N/A N/A a b N/A N/A N/A random randint 1 9 N/A N/A random randint 1 9 N/A N/A b a N/A N/A N/A a b N/A b a N/A N/A opname op N/A N/A random choice N/A N/A OPERATORS items N/A N/A N/A request session N/A CAPTCHA_SESSION_KEY N/A op a b N/A N/A N/A self fields N/A captcha N/A N/A forms IntegerField widget N/A forms TextInput required False label N/A N/A What is {0} {1} {2}? format a opname b N/A clean_captcha N/A N/A self N/A N/A N/A 
        Fail form validation if captcha answer is not the expected answer.

        If no expected captcha answer was previously generated (this is the
        request on which they hit the rate limit for the first time) and no
        captcha answer was provided in the POST data, we don't fail them -- if
        they've got the right username and password on the login attempt that
        first hits the rate limit, their login should succeed.

         N/A answer N/A N/A N/A self cleaned_data get captcha N/A N/A answer N/A self captcha_answer N/A N/A N/A N/A forms ValidationError Sorry, that's not the answer we were looking for. N/A N/A