Merge branch 'Feature/alerts' of gitlab.ewi.tudelft.nl:cse1105/2018-2019/oopp-group-43/template into Feature/alerts

This commit is contained in:
Merel Steenbergen
2019-04-04 20:55:10 +02:00

View File

@@ -233,7 +233,7 @@ public class RegisterWindowController {
userService.registerUser(userNameText.getText(), passwordField.getText());
}
catch(RuntimeException ex){
UserController.AlertHelper.showAlert(Alert.AlertType.ERROR, owner, "Password Error!",
UserController.AlertHelper.showAlert(Alert.AlertType.ERROR, owner, "Username Error!",
"This username has already been taken!");
return;
}