php - Laravel keeps prompting that the original password is incorrect when changing the password
淡淡烟草味
淡淡烟草味 2017-05-16 13:03:00
0
1
463

The following is the implementation code;

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

淡淡烟草味
淡淡烟草味

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