mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.8.x] Removed contrib.auth.forms.mask_password()
This function is unused sincedce820ff70after being introduced in718a5ba1a1Backport ofa53541852dfrom master
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user