Merge pull request #121 from AnonymusRaccoon/mobile_client_last_stuff

Mobile Client: fix password rule
This commit is contained in:
Bluub
2022-03-06 19:45:57 +01:00
committed by GitHub
+5 -1
View File
@@ -60,7 +60,11 @@ class LoginPage extends StatelessWidget {
onSignup: _signupUser,
userType: LoginUserType.name,
userValidator: (input) {
if (input == null || input.trim().length < 4) return "Must be at least 4 chars long";
if (input == null || input.trim().isEmpty) return "Must be at least 1 char long";
return null;
},
passwordValidator: (input) {
if (input == null || input.trim().isEmpty) return "Must be at least 1 char long";
return null;
},
onSubmitAnimationCompleted: () {