I have an existing Laravel 4 site that stores user login details in the MySql DB. The password stored as a hash using....
Hash::make()
There is now a new separate site being made that will utilise the same user logins in the same db. This site will be built in C#.
How can I in C# verify a user's login credentials when the password hash in the DB was created using Laravel?
A bit late but this worked for me:
Install package
Then you just import the library in the .cs file
And in a function for example "LOGIN" after making the query to the DB
we verify if the passwords are the same as in the image where the first parameter is the password that you enter in the textbox
and the other is the one that returns the consult.
I made a query to the DB with the username, You can use the field you want, mail, names, surnames, etc.
Sorry if I'm not very clear, I'm using a translator, I don't speak English, but I want to contribute to the community, even if it's too late, it can help someone like I had to investigate to make this work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With