Removed contrib.auth.forms.mask_password()

This function is unused since dce820ff70
after being introduced in 718a5ba1a1
This commit is contained in:
Tim Graham 2015-02-02 11:06:27 -05:00
parent 8d64aae883
commit a53541852d
1 changed files with 0 additions and 9 deletions

View File

@ -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