This commit is contained in:
2026-10-03 14:33:08 +04:00
parent 6a73d760c4
commit 93a9442e1c
67 changed files with 941 additions and 698 deletions
+1 -1
View File
@@ -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';
+5 -6
View File
@@ -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',
];
}
+4 -2
View File
@@ -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')
: '—';
}
}
+1 -1
View File
@@ -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';