Commit a5354185 authored by Tim Graham's avatar Tim Graham
Browse files

Removed contrib.auth.forms.mask_password()

This function is unused since dce820ff
after being introduced in 718a5ba1
parent 8d64aae8
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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