Package controller
Class LoginController
java.lang.Object
controller.LoginController
Controller for handling user login.
Validates all login fields.
- Author:
- Michael Neuper michael@michaelneuper.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareAllFieldsValid(String email, String mobileNumber, Date date, String password) Checks whether all the entered fields are present and valid.
-
Constructor Details
-
LoginController
public LoginController()
-
-
Method Details
-
areAllFieldsValid
Checks whether all the entered fields are present and valid.- Parameters:
email- user's emailmobileNumber- South African numberdate- date of birthpassword- user's password- Returns:
trueif all fields are valid,falseotherwise
-