add check condition isnotempty
This commit is contained in:
parent
83c65be610
commit
db3cb20255
@ -96,9 +96,11 @@ class _EditProfileState extends State<EditProfile>
|
||||
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user