mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update user model
This commit is contained in:
parent
c07233a1c1
commit
4b611be2d9
1 changed files with 17 additions and 10 deletions
11
app/User.php
11
app/User.php
|
@ -21,7 +21,8 @@ class User extends Authenticatable
|
|||
protected $casts = [
|
||||
'deleted_at' => 'datetime',
|
||||
'email_verified_at' => 'datetime',
|
||||
'2fa_setup_at' => 'datetime'
|
||||
'2fa_setup_at' => 'datetime',
|
||||
'last_active_at' => 'datetime',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -30,7 +31,13 @@ class User extends Authenticatable
|
|||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name', 'username', 'email', 'password', 'app_register_ip'
|
||||
'name',
|
||||
'username',
|
||||
'email',
|
||||
'password',
|
||||
'app_register_ip',
|
||||
'email_verified_at',
|
||||
'last_active_at'
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue