Merge pull request #4541 from pixelfed/staging

Update user model
This commit is contained in:
daniel 2023-07-14 04:33:41 -06:00 committed by GitHub
commit 1a30e488f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,8 @@ class User extends Authenticatable
protected $casts = [ protected $casts = [
'deleted_at' => 'datetime', 'deleted_at' => 'datetime',
'email_verified_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 * @var array
*/ */
protected $fillable = [ protected $fillable = [
'name', 'username', 'email', 'password', 'app_register_ip' 'name',
'username',
'email',
'password',
'app_register_ip',
'email_verified_at',
'last_active_at'
]; ];
/** /**