Skip to content

Commit

Permalink
Provide a prompt text for the default username and passwords in the l…
Browse files Browse the repository at this point in the history
…ogin page for `basic-login` example
  • Loading branch information
besidev committed Jan 8, 2024
1 parent fcd6ab6 commit ee530ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class BasicLoginApp extends RouteApp {
ObservableMap<String, String> session;

public BasicLoginApp() {
userManager.createUser(new UsernamePasswordCredentials("user", "password"),
userManager.createUser(new UsernamePasswordCredentials("admin", "password"),
Set.of(), Map.of("enabled", Boolean.TRUE)).join();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public LoginPage(BasicAuthenticationProvider authProvider,
final var loginPane = new LoginPane(credentials);
loginPane.getStyleClass().add("basic");
loginPane.getSubmitButton().setOnAction(event -> AuthBasicFilter.authorize(loginPane, authProvider));
loginPane.getUsernameField().setPromptText("admin");
loginPane.getPasswordField().setPromptText("password");

getChildren().add(loginPane);
}
Expand Down

0 comments on commit ee530ba

Please sign in to comment.