Hi Everyone!
I am currently working on my first Django
ticket 27807, which is to allow users to customize username validation. My experience with Django and development is very limited (junior developer level). I need some guidance on this.
I am taking similar approach as
password validation (Thanks to Jacob ) . In the current solution, I am following Django core validators pattern which is to have __call__ method for validator. However, I have noticed that password validator needs to have it's own validate method.
Is it best to implement username validators similar to password validators for the consistency and better user experience?
What is the best approach here and what are the benefits of the best approach?
Your feedback is much appreciated.
Cheers
Shekhar