mercredi 22 mai 2019

How to log in to laravel with MD5 and Bcrypt hashing at the same time

I have a DataBase, the password store in it is hashing with MD5.

now I need to do some step:

1.User login(use bcrypt)

2.If(login failed)go to step3
else loggin and exit

3.User login(use MD5)

4.If(login success){ update the hashing password in DataBase by bcrypt. }

END

so my system need to check MD5 and bcrypt when loggin,

how can I do this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire