Don't convert remember_token
field
This commit is contained in:
parent
06b4ec0dbe
commit
9209febd96
@ -53,7 +53,6 @@ class User extends Authenticatable implements JWTSubject
|
|||||||
'last_sign_at',
|
'last_sign_at',
|
||||||
'register_at',
|
'register_at',
|
||||||
'verified',
|
'verified',
|
||||||
'remember_token',
|
|
||||||
];
|
];
|
||||||
array_walk($columns, function ($column) {
|
array_walk($columns, function ($column) {
|
||||||
static::$mappings[$column] = Arr::get(static::$mappings, $column, $column);
|
static::$mappings[$column] = Arr::get(static::$mappings, $column, $column);
|
||||||
@ -209,16 +208,6 @@ class User extends Authenticatable implements JWTSubject
|
|||||||
$this->attributes[static::$mappings['verified']] = $value;
|
$this->attributes[static::$mappings['verified']] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getRememberTokenAttribute()
|
|
||||||
{
|
|
||||||
return $this->attributes[static::$mappings['remember_token']];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setRememberTokenAttribute($value)
|
|
||||||
{
|
|
||||||
$this->attributes[static::$mappings['remember_token']] = $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getPlayerNameAttribute()
|
public function getPlayerNameAttribute()
|
||||||
{
|
{
|
||||||
$player = $this->players->first();
|
$player = $this->players->first();
|
||||||
|
@ -17,6 +17,5 @@ class User extends Model
|
|||||||
'last_sign_at' => 'bs_last_sign_at',
|
'last_sign_at' => 'bs_last_sign_at',
|
||||||
'register_at' => 'bs_register_at',
|
'register_at' => 'bs_register_at',
|
||||||
'verified' => 'bs_verified',
|
'verified' => 'bs_verified',
|
||||||
'remember_token' => 'bs_remember_token',
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user