Fixed username

This commit is contained in:
Marc Beyer 2021-12-21 09:46:53 +01:00
parent ded0b9042f
commit 66edff8ed5

View File

@ -21,13 +21,13 @@ public class LoginController {
@FXML @FXML
protected void login(ActionEvent event){ protected void login(ActionEvent event){
if(userField.getText().trim().isEmpty()){ if(userField.getText().trim().isEmpty()){
userErrLabel.setText("Bitte laginnamen eingeben!"); userErrLabel.setText("Bitte Usernamen eingeben!");
passErrLabel.setText(""); passErrLabel.setText("");
return; return;
} }
if(passField.getText().trim().isEmpty()){ if(passField.getText().trim().isEmpty()){
userErrLabel.setText(""); userErrLabel.setText("");
passErrLabel.setText("Bitte passwort eingeben!"); passErrLabel.setText("Bitte Passwort eingeben!");
return; return;
} }