vmangos
This commit is contained in:
@@ -14,7 +14,7 @@ class BalanceTransaction extends Model
|
||||
|
||||
public const TYPE_ADMIN_DEBIT = 'admin_debit';
|
||||
|
||||
protected $connection = 'azerothcore_auth';
|
||||
protected $connection = 'vmangos_auth';
|
||||
|
||||
protected $table = 'balance_transactions';
|
||||
|
||||
|
||||
@@ -9,17 +9,16 @@ class GameAccount extends Authenticatable
|
||||
{
|
||||
use HasApiTokens;
|
||||
|
||||
protected $connection = 'azerothcore_auth';
|
||||
protected $connection = 'vmangos_auth';
|
||||
|
||||
protected $table = 'account';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $hidden = [
|
||||
'salt',
|
||||
'verifier',
|
||||
'session_key',
|
||||
'session_key_auth',
|
||||
'totp_secret',
|
||||
's',
|
||||
'v',
|
||||
'sessionkey',
|
||||
'token_key',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ class GameAccountUser implements AuthenticatableContract
|
||||
|
||||
public function getAuthPasswordName(): string
|
||||
{
|
||||
return 'verifier';
|
||||
return 'v';
|
||||
}
|
||||
|
||||
public function getAuthPassword(): string
|
||||
@@ -78,6 +78,8 @@ class GameAccountUser implements AuthenticatableContract
|
||||
|
||||
private function formatDate(?string $value): string
|
||||
{
|
||||
return $value ? Carbon::parse($value)->format('d.m.Y H:i') : '—';
|
||||
return $value && ! str_starts_with($value, '0000-00-00')
|
||||
? Carbon::parse($value)->format('d.m.Y H:i')
|
||||
: '—';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class PaymentInvoice extends Model
|
||||
|
||||
public const MODE_PRODUCTION = 'production';
|
||||
|
||||
protected $connection = 'azerothcore_auth';
|
||||
protected $connection = 'vmangos_auth';
|
||||
|
||||
protected $table = 'payment_invoices';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user