Custom Password Constraint Validator Annotation Example

You may also like...

4
Leave a Reply

avatar
2 Comment threads
2 Thread replies
3 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
JulezMemoryNotFoundIsaakMonika Recent comment authors
  Subscribe  
newest oldest
Notify of
Monika
Guest
Monika

Sorry for the maybe stupid question but i’m a beginner. Which part of validation validates that password and confirmed password match?

Isaak
Guest
Isaak

While this is informative, this is not a valid way to handle passwords, because your code assumes the password is stored in plain text in the permanent storage (database) and that’s unacceptable. So your example is not complete, it’s actually a very bad recommendation

Julez
Guest
Julez

Isaak, I’m waiting for your response to author’s reply. :-)