diff --git a/covas_mobile/lib/pages/EditProfile.dart b/covas_mobile/lib/pages/EditProfile.dart index 2770ad2..2f72190 100644 --- a/covas_mobile/lib/pages/EditProfile.dart +++ b/covas_mobile/lib/pages/EditProfile.dart @@ -96,9 +96,11 @@ class _EditProfileState extends State var confirmedPassword = inputPasswordConfirmed.text; var birth = DateTime.parse(formatDate(inputBirth.text)); - if (password != confirmedPassword) { - showAlertDialog(context, "Erreur", "Mot de passe different"); - return; + if ((password.isNotEmpty) && (confirmedPassword.isNotEmpty)) { + if (password != confirmedPassword) { + showAlertDialog(context, "Erreur", "Mot de passe different"); + return; + } } var urlPut = Uri.parse("${globals.api}/users/me");