update change port

This commit is contained in:
pbao9
2026-01-17 11:27:54 +07:00
parent a79f0041f4
commit 4f2fdbaaa5
14 changed files with 70 additions and 147 deletions
@@ -40,15 +40,10 @@ class ConfigCLICommand implements ShouldQueue
$usersName = '';
$port = '';
// Lưu password vào database ngay khi tạo
try {
$vm = \App\Models\ModuleVmware::where('vmware_id', $this->vmware_id)->first();
if ($vm) {
$vm->update(['password' => \App\Http\Facade\SignRSA::EncryptFunc($PasswordVirtualMachine)]);
Log::info('✅ Đã lưu password vào database', [
'vm_id' => $this->vmware_id,
'password' => $PasswordVirtualMachine
]);
}
} catch (\Exception $e) {
Log::error('❌ Lỗi khi lưu password: ' . $e->getMessage());