fix: 🐛 Fix credits exploit and infinite logs
This commit is contained in:
parent
43ea446b2a
commit
441d89767d
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ return [
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'paths' => [
|
'paths' => [
|
||||||
resource_path('views'),
|
base_path('themes'),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue