﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32553	Allow UserAttributeSimilarityValidator to validate against fields of related models	Meiyer	nobody	"The password validator `UserAttributeSimilarityValidator` is currently too rigid and allows comparison of the password only to the fields of the `User` model, while ignoring the common case where there is also a profile attached to the user (as a separate model). My suggestion is to relax the attribute resolution so that also fields defined on related models could be accessed; for example, by traversing a dotted path as in `reduce(getattr, path.split('.'), obj)`.

Yet a better option could be to allow plugging into the validator by means of an overridable method `get_user_attribute(self, attribute_name)` used instead of a direct `getattr`, that will allow more customisation while leaving the validation logic intact."	New feature	new	contrib.auth	dev	Normal				Unreviewed	0	0	0	0	0	0
