Fix the password length field while adding a server (#2108)

This commit is contained in:
Belle Aerni authored and GitHub committed 2024-01-30 16:48:00 -08:00
1 parent 21b4422921
commit 4d3926720f
1 file changed
+1 -1
+1 -1
View File
@@ -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');