update change port
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user