Skip to content

Commit

Permalink
Issue #25: Changing main flow to if in LoginValidation class
Browse files Browse the repository at this point in the history
  • Loading branch information
igorribeiroduarte committed Apr 24, 2016
1 parent 68bf3a8 commit f80e212
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public LoginValidation(Activity activity){
public LoginValidation(){}

private boolean checkUsernameCharacters(String username){
if(username.isEmpty())
return false;
if(username.contains(" "))
if(username.isEmpty()==false && username.contains(" ")==false){
return true;
}else{
return false;
return true;
}
}

public boolean isActivity(String username){
Expand Down

0 comments on commit f80e212

Please sign in to comment.