Fixed login and register errors.

This commit is contained in:
Asal Lotfi
2025-08-30 17:14:04 +03:30
parent fe70aa6bd7
commit dff7b82e34
2 changed files with 21 additions and 1 deletions
@@ -156,6 +156,7 @@ public class RegisterController {
PauseTransition pause = new PauseTransition(Duration.millis(50));
pause.setOnFinished(event -> {
errorLabel.setText(message);
errorLabel.setStyle("-fx-text-fill: red;"); // 🔴 force red
errorLabel.setVisible(true);
});
pause.play();