Authentication Laravel Auth基本哈希

Authentication Laravel Auth基本哈希,authentication,laravel,Authentication,Laravel,LARAVEL基本身份验证 我有表userlike id | username | userpassword 我正在使用username和userpassword来匹配user表中的数据 在fielduserpassword中,我没有像hash::make('secretpassword')那样使用Laravel散列,我使用的是md5散列。如何将post密码变量设置为md5 hash,以便我可以通过并登录 您必须将列“userpassword”的名称更改为“password”。希望在将来的La

LARAVEL基本身份验证

我有表
user
like

id | username | userpassword
我正在使用
username
userpassword
来匹配
user
表中的数据

在field
userpassword
中,我没有像
hash::make('secretpassword')那样使用Laravel散列,我使用的是
md5散列
。如何将post密码变量设置为
md5 hash
,以便我可以通过并登录

  • 您必须将列“userpassword”的名称更改为“password”。希望在将来的Laravel版本中,您可以更改此列的名称,以便Laravel Auth正常工作
  • Laravel Auth要求您使用其哈希::make()。老实说,这样做是个好主意

  • 但我用的是basic auth。怎样