#Returns true instead of hashed password?

77 messages · Page 1 of 1 (latest)

unique rune
#

Why would it return a hashed password?

crude moon
crude moon
glossy haven
#

You are getting what you should back.

unique rune
#

5.8

glossy haven
#

Oops

unique rune
#

gee grandpa

glossy haven
#

Are you trolling?

#

Look at what I linked you, that returns a bool too.

crude moon
glossy haven
#

None of them are going to return the data you're filling.

#

What are you trying to do?

crude moon
crude moon
glossy haven
#

You're doing that.

crude moon
#

and wanna update the password for the user

crude moon
#

but

#

not the correct data

#

i have try'd login with the new set password

#

but seems it didn't store the new password data i have put in.

glossy haven
#

Do you have password set as mass assignable?

crude moon
#

idk what u mean by assignable

#

can u give me example if i'm not correct?

glossy haven
crude moon
glossy haven
#

So you do have password as mass assignable?

#

Share your user model.

crude moon
glossy haven
#

Usually it is at \App\Models\User

crude moon
crude moon
#

good?

glossy haven
#

Yeah, password is fillable. So that is good, it is something else then. Log a temporary variable for your hashed password and then compare it to what is stored in the DB to make sure it is being updated.

royal bronze
# crude moon

Dude, what on earth is this? You don’t define properties like this in an Eloquent model.

crude moon
crude moon
#

seems like

glossy haven
#

Try dd($request->new_password) and see if it has your data in it.

glossy haven
#

And did you dump the Hashed password and compared to what is being stored in your DB to make sure they match?

crude moon
#

ERROR: Object of class App\Http\Livewire\Admin\classname could not be converted to string

glossy haven
#

Why are you using $this-> ?

#

Just do $request->new_password

crude moon
#

because it worked before in dd method

crude moon
#

i will try again

crude moon
#

I have looked in db and the hash changed into other hash

#

could be a login problem?

glossy haven
#

Could be if your hash is uploading - did you do a custom login?

crude moon
crude moon
glossy haven
#

Show the code

crude moon
#

what code exactly?

#

Location

glossy haven
#

How could I possibly know where you put your custom login code?

crude moon
#

this is my internship project

#

i don't know either

#

any way

#

Thanks for trying to help : )

glossy haven
#

Np.

#

Its possible you're not hashing the password you are authenticating with whereever you're doing it.

#

So try to track that down.

crude moon
#

yes thanks.

#

have a great day.

glossy haven
#

You too

crude moon
#

is that diffrent then Hash::make?