From 901bc36f0903f6658a76c3273a6d1ab2e81410ea Mon Sep 17 00:00:00 2001 From: insects Date: Tue, 11 Mar 2025 15:20:55 +0100 Subject: [PATCH] fix: increase password length to 4 --- app/controllers/instance_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/instance_controller.rb b/app/controllers/instance_controller.rb index 878e0da..6b9013a 100644 --- a/app/controllers/instance_controller.rb +++ b/app/controllers/instance_controller.rb @@ -3,7 +3,7 @@ class InstanceController < ApplicationController zone = create_instance_params public_id = Nanoid.generate(size: 6) name = Spicy::Proton.pair(" ") - password = Nanoid.generate(size: 3, alphabet: "0123456789") + password = Nanoid.generate(size: 4, alphabet: "0123456789") instance = Instance.new(zone: zone, public_id: public_id, name: name, password: password) if instance.save @id = instance.public_id