-
- All Known Implementing Classes:
UserService
public interface IUserService
TheIUserService
interface defines a contract for user services.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
changePassword(java.lang.String oldPassword, java.lang.String newPassword)
Changes the password of a user if the provided old password matches the current password.
-
-
-
Method Detail
-
changePassword
boolean changePassword(java.lang.String oldPassword, java.lang.String newPassword)
Changes the password of a user if the provided old password matches the current password.- Parameters:
oldPassword
- the current password of the usernewPassword
- the new password the user wants to set- Returns:
- true if the password was changed successfully, false otherwise
-
-