0

LARAVEL BASIC AUTH

I have table user like

id | username | userpassword

I'm using username and userpassword to matching data from user table.

In field userpassword I'm not using Laravel hash like Hash::make('secretpassword');, I'm using md5 hash. How to set post password variable to md5 hash so that I can pass and login?

Jerry Stratton
  • 3,287
  • 1
  • 22
  • 30
isogram
  • 21
  • 6

1 Answers1

0
  1. You're going to have to change the name of the column "userpassword" to just "password". Hopefully, in future Laravel versions you will be allowed to change the name of this column for Laravel Auth to work
  2. Laravel Auth requires you use their Hash::make(). Honestly, its a good idea to do so.
Chukky Nze
  • 720
  • 3
  • 13