douji6461 2016-03-09 23:26
浏览 99
已采纳

Laravel:登录奇怪的问题

i am observing very strange situation with my login form. The first version of my login was the simple login with email and password. It was working fine till i alter my users table to have another field "status". I want only confirmed by administrator users so be able to login. So i added the "status" field to the attempt()-method as follows:

if ($this->auth->attempt([$this->loginUsername() => $request->input($this->loginUsername()), 'password' => $request->input('password'), 'status' => 1], $request->has('remember'))) 

the first time when i try to log, the login was successful. Than i log out and try to login again, but i am not able to login. Reason: "These credentials do not match our records."

If i try again to login with 'unused' user than i can login again, but after log out this username is no more accessible. Why is that happening ?

  • 写回答

1条回答 默认 最新

  • donglu9898 2016-03-09 23:47
    关注

    it was my bad. Chrome stores false password, that's why i cannot login

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥60 根据以下要求生成一段程序
  • ¥15 有人懂怎么做大模型的客服系统吗?卡住了卡住了
  • ¥20 firefly-rk3399上启动卡住了
  • ¥15 如何删除这个虚拟音频
  • ¥50 hyper默认的default switch
  • ¥15 网站打不开,提示502 Bad Gateway
  • ¥20 基于MATLAB的绝热压缩空气储能系统代码咨询
  • ¥15 R语言建立随机森林模型出现的问题
  • ¥15 中级微观经济学,生产可能性边界问题
  • ¥15 TCP传输时不同网卡传输用时差异过大