diff --git a/avni-server-api/src/main/java/org/avni/server/web/UserInfoController.java b/avni-server-api/src/main/java/org/avni/server/web/UserInfoController.java index 3171bb86e..92c7fb519 100644 --- a/avni-server-api/src/main/java/org/avni/server/web/UserInfoController.java +++ b/avni-server-api/src/main/java/org/avni/server/web/UserInfoController.java @@ -1,4 +1,4 @@ -package org.avni.server.web; + package org.avni.server.web; import org.avni.server.dao.CatchmentRepository; import org.avni.server.dao.OrganisationRepository; @@ -162,6 +162,7 @@ public void save(@RequestBody UserBulkUploadContract[] userContracts) { user.setOperatingIndividualScope(OperatingIndividualScope.valueOf(userContract.getOperatingIndividualScope())); user.setSettings(userContract.getSettings()); userService.setPhoneNumber(userContract.getPhoneNumber(), user, RegionUtil.getCurrentUserRegion()); + user.setEmail(userContract.getEmail()); user.setAuditInfo(userService.getCurrentUser()); User savedUser = userService.save(user); if (newUser) userService.addToDefaultUserGroup(savedUser);