Support the ongoing development of Laravel.io →
Authentication
Last updated 1 year ago.
0

Sounds like an odd one. What happens if you use file based sessions?

Last updated 1 year ago.
0

To improve your code a little add this to the User model and remove the line

// Add this
public function setPasswordAttribute($value)
{
	$this->attributes['password'] = Hash::make($value);
}

// Remove this
$user->password = Hash::make($pw);

And for the authentication problem could you share the code belonging to that, so we could help you with that.

Last updated 1 year ago.
0

T2theC said:

Sounds like an odd one. What happens if you use file based sessions?

I have tried all session drivers, but this didn't help.

eriktisme said: And for the authentication problem could you share the code belonging to that, so we could help you with that.

I have added the login code.

Update: I noticed that passwords get rehashed when logging in. Could it be possible that something is happening here?

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jerodev jerodev Joined 20 May 2014

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.