mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
Merge branch 'vaelio-main-patch-78392' into 'main'
Fixing security pin removal issue Closes #308 See merge request famedly/fluffychat!391
This commit is contained in:
commit
09bb1d8f0d
@ -314,13 +314,10 @@ class _SettingsState extends State<Settings> {
|
|||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
validator: (text) {
|
validator: (text) {
|
||||||
if (int.tryParse(text) == null || int.tryParse(text) < 0) {
|
if (text.isEmpty || (text.length == 4 && int.tryParse(text) >= 0)) {
|
||||||
return L10n.of(context).pleaseEnter4Digits;
|
return null;
|
||||||
}
|
}
|
||||||
if (text.length != 4 && text.isNotEmpty) {
|
return L10n.of(context).pleaseEnter4Digits;
|
||||||
return L10n.of(context).pleaseEnter4Digits;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
},
|
},
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user