Support the ongoing development of Laravel.io →
Security Database Installation
Last updated 2 years ago.
0

mistype, $oldpassword and not @oldpassword. But still not working

0

Make dd() of $oldpassword and $user->password, to see what data's printed

0

mcklayin said:

Make dd() of $oldpassword and $user->password, to see what data's printed

user->password is stored hashed. oldpassword is in cleartext.

if i hash oldpassword, the result is different from user->password (as expected, different salt).

no way to find a solution

0

you dont have a mutator setup for the password attribute do you ?

0

nope, I use this standard function: $password=Hash::make($password); $newuser['password'] = $password; return User::create($newuser);

0

i use JWT, dunno if this could be the problem

0

Sign in to participate in this thread!

Eventy

Your banner here too?

r0bin51 r0bin51 Joined 9 Dec 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.