mercredi 16 octobre 2019

I want to used md5 encryption method for password field in login form instead of existing bcrypt encryption method?

I have completed login functionality using Auth middleware where is used a Bcrypt encryption method. Login functionality is works fine. But we need to handle set password functionality with having old password need to validate. But everytime Bcrypt method change the password string so the previous store bcrypt string of password in table is not match with the manually enter password in the set password form. So how to validate old password field if it will not match with existing saved passoword in the table.

$credentials = request(['email', 'password']);
       $user=Auth::attempt($credentials);


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/35FNtZK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire