This commit is contained in:
Sándor Máté Magony
2025-05-11 13:07:54 +02:00
parent ec057787fd
commit a85c207b44
13 changed files with 25 additions and 169 deletions

View File

@@ -22,7 +22,6 @@ class User extends Authenticatable implements JWTSubject
return [];
}
// Change to match your migration
protected $table = 'felhasznalok';
protected $fillable = [
@@ -43,13 +42,11 @@ class User extends Authenticatable implements JWTSubject
'email_verified_at' => 'datetime',
];
// This method tells Laravel to use jelszo field for passwords
public function getAuthPassword()
{
return $this->jelszo;
}
// Fix this to use 'jelszo' instead of 'password'
public function setJelszoAttribute($value)
{
$this->attributes['jelszo'] = \Illuminate\Support\Facades\Hash::make($value);