Closed bedfir closed 1 year ago
I think you have made a mistake on both methods loginUser and signUpUser you have used operator OR instead of AND. therefore the fields are not required.
` if (email.isNotEmpty || password.isNotEmpty || username.isNotEmpty || bio.isNotEmpty || file != null) {
return "Only one fiield are required with the || operator";
} `
Check my Fork for fixing the issue
I think you have made a mistake on both methods loginUser and signUpUser you have used operator OR instead of AND. therefore the fields are not required.
` if (email.isNotEmpty || password.isNotEmpty || username.isNotEmpty || bio.isNotEmpty || file != null) {
} `