- java.lang.Object
-
- controllers.UserController
-
- Direct Known Subclasses:
StaffController
,StudentController
public class UserController extends java.lang.Object
TheUserController
class is responsible for handling user-related actions, such as changing the user's password. This class serves as a base class for more specific user types likeStudentController
orStaffController
orCommitteeController
.
-
-
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.
-