Commit edef33e7 authored by Turid Cecilie Dahl's avatar Turid Cecilie Dahl
Browse files

#97 Can't log in as Username

parent 533ff1e0
......@@ -147,7 +147,7 @@ public class CreateNewTournamentState extends State {
innerTable.setBackground(backgroundTableBlueRounded);
innerTable.add(makeRow(nameLabel, nameDialog));
nameInputField.setMaxLength(10);
nameInputField.setMaxLength(9);
innerTable.add(nameInputField).size(nameFieldWidth, inputFieldHeight);
innerTable.row();
removeKeyPadAtTouch();
......
......@@ -216,6 +216,13 @@ public class LoginState extends State {
String username = usernameInputField.getText();
String password = passwordInputField.getText();
//Check if username = Username
if(username.equals("Username")){
errorLabel.setText(wrongLoginText);
return;
}
try {
Player player = QueryIntermediate.loginPlayer(username, password);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment