From 4d3926720f40cf0c2d4e72b1b27f040ef36a28e6 Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Tue, 30 Jan 2024 16:48:00 -0800 Subject: [PATCH] Fix the password length field while adding a server (#2108) --- src/modules/Servicehosting/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Servicehosting/Service.php b/src/modules/Servicehosting/Service.php index 2ef7a8d9a..f3d61f9bb 100644 --- a/src/modules/Servicehosting/Service.php +++ b/src/modules/Servicehosting/Service.php @@ -703,7 +703,7 @@ class Service implements InjectionAwareInterface $model->password = $data['password'] ?? null; $model->accesshash = $data['accesshash'] ?? null; $model->port = $data['port'] ?? null; - $model->passwordLength = $data['passwordLength'] ?? null; + $model->passwordLength = is_numeric($data['passwordLength']) ? intval($data['passwordLength']) : null; $model->secure = $data['secure'] ?? 0; $model->created_at = date('Y-m-d H:i:s');