Package controllers

Class UserController

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Scanner sc
      Scanner object to get input from user
    • Constructor Summary

      Constructors 
      Constructor Description
      UserController()
      Default constructor of UserController class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean changePassword()
      Changes the user's password after verifying the old password and ensuring the new password meets certain criteria.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sc

        private static final java.util.Scanner sc
        Scanner object to get input from user
    • Constructor Detail

      • UserController

        public UserController()
        Default constructor of UserController class
    • Method Detail

      • changePassword

        protected boolean changePassword()
        Changes the user's password after verifying the old password and ensuring the new password meets certain criteria.
        Returns:
        true if the password change is successful, false otherwise.