From 8d93f2a428f9d0bf069d88d7bc62f24c9c3c5e57 Mon Sep 17 00:00:00 2001 From: andrew cooke Date: Sun, 27 Dec 2020 18:35:04 -0300 Subject: [PATCH] Update customizing_forms.rst Fix an obvious typo (copy+paste + changed wrong word) --- docs/source/customizing_forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/customizing_forms.rst b/docs/source/customizing_forms.rst index 8709650a..efdc14cb 100644 --- a/docs/source/customizing_forms.rst +++ b/docs/source/customizing_forms.rst @@ -174,7 +174,7 @@ Flask user ships with default username and password form field validators that c raise ValidationError('Some error message.') # Override the default username validator - def password_username(form, field): + def username_validator(form, field): if not some_condition: raise ValidationError('Some error message.')