restore acore_auth

This commit is contained in:
2026-10-04 20:21:28 +04:00
parent b9f2a6da1e
commit 88af380cab
12 changed files with 887 additions and 6 deletions
@@ -63,7 +63,7 @@ class ImportWebAccountsToVMangos extends Command
if ($credential?->web_user_id !== null) {
throw new RuntimeException("Account already belongs to another web user; web.users ID {$user->id}.");
}
if ($existing && $existing->email && strcasecmp(trim($existing->email), trim($user->email)) !== 0) {
if ($existing && $existing->email && $user->email !== null && strcasecmp(trim($existing->email), trim($user->email)) !== 0) {
throw new RuntimeException("Existing game account email differs for web.users ID {$user->id}; resolve the conflict before importing.");
}