summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-02 11:06:27 -0500
committerTim Graham <timograham@gmail.com>2015-02-02 11:13:48 -0500
commit3af1e7860e0160bd126bdafebf8511b1ea365af9 (patch)
tree4ca5405e7d436967bd5deb237a9446356e2a4d29
parentef90ca5f42c81dcee39878c9da96af56eb5e29a4 (diff)
[1.8.x] Removed contrib.auth.forms.mask_password()
This function is unused since dce820ff70f00e974afd3e6e310aa825bc55319f after being introduced in 718a5ba1a1a77374c26b134ded46dab13776d1a1 Backport of a53541852d5601232899e54d66e623bc163c6dc2 from master
-rw-r--r--django/contrib/auth/forms.py9
1 files changed, 0 insertions, 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