mirror of
https://github.com/django/django.git
synced 2025-01-28 02:59:58 +00:00
[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
This commit is contained in:
parent
ef90ca5f42
commit
3af1e7860e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user