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:14 -0500
commita53541852d5601232899e54d66e623bc163c6dc2 (patch)
tree692d141f25d5098da38e784acd8dc12d8371c2b7
parent8d64aae883f7721c33f88276e7c999844085659f (diff)
Removed contrib.auth.forms.mask_password()
This function is unused since dce820ff70f00e974afd3e6e310aa825bc55319f after being introduced in 718a5ba1a1a77374c26b134ded46dab13776d1a1
-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