Validate Password

I have used "GenerateSaltedMD5HAsh" to generate salted password and saved it in database during the sign in , and I want to validate that entered password during login which is a plain text matches with the saved salted password in my database. For which I used "Validate password ". but the action is returning false every time and passwords aren't matching. If any one could help me with what needs to be the flow of logic, would be a great help


Hello Shrushti,

It would be great if you can attach the OML.

Please also ensure your inputs are correct.

note:- Another basic check that while storing to db you are storing the proper hashed password coming from the server action-




Hi Krunal,

Thanks! It worked for me.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.