Package controller

Class LoginController

java.lang.Object
controller.LoginController

public class LoginController extends Object

Controller for handling user login.

Validates all login fields.

Author:
Michael Neuper michael@michaelneuper.com
  • Constructor Details

    • LoginController

      public LoginController()
  • Method Details

    • areAllFieldsValid

      public boolean areAllFieldsValid(String email, String mobileNumber, Date date, String password)
      Checks whether all the entered fields are present and valid.
      Parameters:
      email - user's email
      mobileNumber - South African number
      date - date of birth
      password - user's password
      Returns:
      true if all fields are valid, false otherwise