add check condition isnotempty
This commit is contained in:
parent
83c65be610
commit
db3cb20255
@ -96,10 +96,12 @@ class _EditProfileState extends State<EditProfile>
|
|||||||
var confirmedPassword = inputPasswordConfirmed.text;
|
var confirmedPassword = inputPasswordConfirmed.text;
|
||||||
var birth = DateTime.parse(formatDate(inputBirth.text));
|
var birth = DateTime.parse(formatDate(inputBirth.text));
|
||||||
|
|
||||||
|
if ((password.isNotEmpty) && (confirmedPassword.isNotEmpty)) {
|
||||||
if (password != confirmedPassword) {
|
if (password != confirmedPassword) {
|
||||||
showAlertDialog(context, "Erreur", "Mot de passe different");
|
showAlertDialog(context, "Erreur", "Mot de passe different");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var urlPut = Uri.parse("${globals.api}/users/me");
|
var urlPut = Uri.parse("${globals.api}/users/me");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user