search

Home  >  Q&A  >  body text

php - Laravel修改密码时一直提示原始密码不正确

以下是实现代码;

为什么一直提示原始密码不正确?

淡淡烟草味淡淡烟草味2738 days ago441

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