php - Laravel修改密码时一直提示原始密码不正确
淡淡烟草味
淡淡烟草味 2017-05-16 13:03:00
0
1
382

以下是实现代码;

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

淡淡烟草味
淡淡烟草味

reply all(1)
Ty80
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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!