Override validator message
darakian opened this issue · 1 comments
darakian commented
Hey All,
I'm using the dictionary validator as a common password blacklist and it works a treat. The only issue I have is that the error message which gets propagated to the user is based on a dictionary word
, which for a password like 1234qwer
reads a bit counter intuitively.
Is is possible to override the error message when simply importing the dictionary validator or do I need to do more?
darakian commented
Figured out the answer to my own question
self.error_messages['dictionary_word'] = ('Custom message.')