mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Cleanup
This commit is contained in:
@@ -117,8 +117,8 @@ public class UserNewResource extends AbstractManagerResource<User, UserException
|
|||||||
public Response update(@Context UriInfo uriInfo,
|
public Response update(@Context UriInfo uriInfo,
|
||||||
@PathParam("id") String name, UserDto userDto)
|
@PathParam("id") String name, UserDto userDto)
|
||||||
{
|
{
|
||||||
User o = manager.get(name);
|
String originalPassword = manager.get(name).getPassword();
|
||||||
User user = dtoToUserMapper.userDtoToUser(userDto, o.getPassword());
|
User user = dtoToUserMapper.userDtoToUser(userDto, originalPassword);
|
||||||
return super.update(name, user);
|
return super.update(name, user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user