Skip to content

Commit

Permalink
Sad
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyab3 committed Oct 9, 2018
1 parent 88616b6 commit a704741
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions mediroo/lib/src/screens/login/signup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,18 @@ class _SignupPageState extends State<SignupPage> {
.then((String uid) {
if (uid == null) {
// information validation and error checking
emailController.clear();
passwordController.clear();
setState(() {
_passwordError = 'Email already in use or password is less than 6 characters';
});
if (passwordController.text.length >= 6) {
setState(() {
_emailError = 'Email already in use';
emailController.clear();
});
} else {

This comment has been minimized.

Copy link
@BraeWebb

BraeWebb Oct 10, 2018

Owner

This will also be executed for network connection issues

see here

setState(() {
_passwordError = 'Password is less than six characters long';
passwordController.clear();
});
}

return;
}

Expand Down

0 comments on commit a704741

Please sign in to comment.