From a53541852d5601232899e54d66e623bc163c6dc2 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 2 Feb 2015 11:06:27 -0500 Subject: [PATCH] Removed contrib.auth.forms.mask_password() This function is unused since dce820ff70f00e974afd3e6e310aa825bc55319f after being introduced in 718a5ba1a1a77374c26b134ded46dab13776d1a1 --- django/contrib/auth/forms.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py index d410bbb9bc..3d19b2247e 100644 --- a/django/contrib/auth/forms.py +++ b/django/contrib/auth/forms.py @@ -20,15 +20,6 @@ from django.contrib.auth.tokens import default_token_generator from django.contrib.sites.shortcuts import get_current_site -UNMASKED_DIGITS_TO_SHOW = 6 - - -def mask_password(password): - shown = password[:UNMASKED_DIGITS_TO_SHOW] - masked = "*" * max(len(password) - UNMASKED_DIGITS_TO_SHOW, 0) - return shown + masked - - class ReadOnlyPasswordHashWidget(forms.Widget): def render(self, name, value, attrs): encoded = value