Validate Password
Question

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

Solution

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-

GenerateSaltedMD5Hash.SaltedMD5HashPassword

Thanks,

Krunal

Hi Krunal,

Thanks! It worked for me.

Regards 

Shrushti 

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