You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
217317751JiayeChen edited this page Apr 1, 2024
·
1 revision
LoginController
Controller for managing user login functionality.
Author: Jiaye Chen
Class Attributes:
Button_SignIn: A Button for initiating the login process.
vostok: An ImageView for displaying the logo.
Button_SignUp: A Button for navigating to the registration window.
TextField_Username: A TextField for entering the username.
PasswordField_Password: A PasswordField for entering the password.
acc_type_selector: A ChoiceBox for selecting the type of account (customer, advisor, admin).
Initialization Method:
initialize(URL url, ResourceBundle resourceBundle): Method invoked to initialize the controller after its root element has been completely processed.
Action Methods:
onLogin(): Method invoked when the sign-in button is clicked to validate the login credentials and proceed to the respective user dashboard.
onRegister(): Method invoked when the sign-up button is clicked to navigate to the registration window.
Usage Notes:
This class serves as the controller for managing user login functionality.
It validates the entered credentials and redirects the user to the appropriate dashboard based on the selected account type.