From 792cf1222c6f2c27427a0050e6e6a8c5a52d382d Mon Sep 17 00:00:00 2001 From: Anshuman Date: Sat, 30 Nov 2024 22:37:35 +0530 Subject: [PATCH] Fixed pin len check --- services/auth/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth/auth.go b/services/auth/auth.go index bf0550c..c59dc12 100644 --- a/services/auth/auth.go +++ b/services/auth/auth.go @@ -34,8 +34,8 @@ func (s *Service) HasPin() bool { } func (s *Service) SetupPin(pin string) error { - if len(pin) < 4 { - return errors.New("PIN must be at least 4 characters") + if len(pin) < 6 { + return errors.New("PIN must be at least 6 characters") } if s.HasPin() { return errors.New("PIN is already set")