search

Home  >  Q&A  >  body text

php - Laravel keeps prompting that the original password is incorrect when changing the password

The following is the implementation code;

Why does it keep prompting that the original password is incorrect?

淡淡烟草味淡淡烟草味2781 days ago465

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 13:05:00

    if (Hash::check('plain-text', $hashedPassword)) {
        // 密码对比...
    }

    This is in the documentation. So here your parameters are in the wrong position. As a result, the comparison between the encrypted password and the unencrypted original password is naturally wrong.

    reply
    0
  • Cancelreply