fix: 🐛 Fix credits exploit and infinite logs

This commit is contained in:
Ferks-FK 2023-09-16 14:03:00 -04:00 committed by IceToast
parent 43ea446b2a
commit 441d89767d
2 changed files with 4 additions and 1 deletions

View file

@ -61,6 +61,7 @@ class User extends Authenticatable implements MustVerifyEmail
'avatar', 'avatar',
'suspended', 'suspended',
'referral_code', 'referral_code',
'email_verified_reward'
]; ];
/** /**
@ -83,6 +84,7 @@ class User extends Authenticatable implements MustVerifyEmail
'last_seen' => 'datetime', 'last_seen' => 'datetime',
'credits' => 'float', 'credits' => 'float',
'server_limit' => 'float', 'server_limit' => 'float',
'email_verified_reward' => 'boolean'
]; ];
public static function boot() public static function boot()
@ -285,6 +287,7 @@ class User extends Authenticatable implements MustVerifyEmail
{ {
$this->forceFill([ $this->forceFill([
'email_verified_at' => null, 'email_verified_at' => null,
'email_verified_reward' => true,
])->save(); ])->save();
} }

View file

@ -14,7 +14,7 @@ return [
*/ */
'paths' => [ 'paths' => [
resource_path('views'), base_path('themes'),
], ],
/* /*