From c5b23ee80039ec2fb544044f1ed885b5e85b8d21 Mon Sep 17 00:00:00 2001 From: Curtly Critchlow Date: Tue, 12 Nov 2024 08:20:08 -0400 Subject: [PATCH] fix: device atsign no longer accepts @ only. --- packages/dart/npt_flutter/lib/util/form_validator.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dart/npt_flutter/lib/util/form_validator.dart b/packages/dart/npt_flutter/lib/util/form_validator.dart index 646781dd0..f4a909ee7 100644 --- a/packages/dart/npt_flutter/lib/util/form_validator.dart +++ b/packages/dart/npt_flutter/lib/util/form_validator.dart @@ -14,7 +14,7 @@ class FormValidator { static String? validateRequiredAtsignField(String? value) { final strings = AppLocalizations.of(App.navState.currentContext!)!; - if (!value!.startsWith('@')) { + if (!value!.startsWith('@') || value.length < 2) { return strings.validationErrorAtsignField; } validateRequiredField(value);