Uses of Record Class
edu.ntnu.idatt2106_2023_06.backend.dto.users.UserPasswordUpdateDTO
Packages that use UserPasswordUpdateDTO
Package
Description
-
Uses of UserPasswordUpdateDTO in edu.ntnu.idatt2106_2023_06.backend.controller
Methods in edu.ntnu.idatt2106_2023_06.backend.controller with parameters of type UserPasswordUpdateDTOModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>UserController.updatePassword(UserPasswordUpdateDTO passwordUpdateDTO, org.springframework.security.core.Authentication authentication) Updates the user's password. -
Uses of UserPasswordUpdateDTO in edu.ntnu.idatt2106_2023_06.backend.service.users
Methods in edu.ntnu.idatt2106_2023_06.backend.service.users with parameters of type UserPasswordUpdateDTOModifier and TypeMethodDescriptionvoidIUserService.updateUserPassword(UserPasswordUpdateDTO userPasswordUpdateDTO, String username) voidUserService.updateUserPassword(UserPasswordUpdateDTO userPasswordUpdateDTO, String username) This method allows a user to update their password; however, only if the user provided the correct old password.