mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Apply new min & max name policy
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:comunic/enums/user_page_visibility.dart';
|
||||
import 'package:comunic/helpers/serialization/user_list_serialization_helper.dart';
|
||||
import 'package:comunic/helpers/server_config_helper.dart';
|
||||
import 'package:comunic/helpers/settings_helper.dart';
|
||||
import 'package:comunic/models/general_settings.dart';
|
||||
import 'package:comunic/ui/dialogs/multi_choices_dialog.dart';
|
||||
@ -86,7 +87,9 @@ class _GeneralAccountSettingsScreenState
|
||||
_settings.firstName = s;
|
||||
_updateSettings();
|
||||
},
|
||||
checkInput: (s) => s.length >= 3,
|
||||
maxLength: srvConfig.accountInformationPolicy.maxFirstNameLength,
|
||||
checkInput: (s) =>
|
||||
s.length >= srvConfig.accountInformationPolicy.minFirstNameLength,
|
||||
),
|
||||
|
||||
// Last name
|
||||
@ -97,7 +100,9 @@ class _GeneralAccountSettingsScreenState
|
||||
_settings.lastName = s;
|
||||
_updateSettings();
|
||||
},
|
||||
checkInput: (s) => s.length >= 3,
|
||||
maxLength: srvConfig.accountInformationPolicy.maxLastNameLength,
|
||||
checkInput: (s) =>
|
||||
s.length >= srvConfig.accountInformationPolicy.minLastNameLength,
|
||||
),
|
||||
|
||||
// Emails settings
|
||||
|
Reference in New Issue
Block a user