From ebfddeda94e119c4596e791ae6637883e9d4dac5 Mon Sep 17 00:00:00 2001 From: Arpit Mohan Date: Thu, 16 Jan 2020 16:59:49 +0530 Subject: [PATCH] Fixing minor bug in the invite flow which was causing the password to be hashed twice --- .../java/com/appsmith/server/services/UserServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java index 29673d164a..d5099a3da9 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java @@ -419,9 +419,9 @@ public class UserServiceImpl extends BaseService i .flatMap(userToDelete -> inviteUserRepository.delete(userToDelete)) .thenReturn(true); } - log.debug("The user doesn't exist in the system. Creating a new one"); + log.debug("The invited user {} doesn't exist in the system. Creating a new record", inviteUser.getEmail()); // The user doesn't exist in the system. Create a new user object - newUser.setPassword(passwordEncoder.encode(inviteUser.getPassword())); + newUser.setPassword(inviteUser.getPassword()); return this.create(newUser) .flatMap(createdUser -> addUserToOrganization(newUser.getCurrentOrganizationId(), createdUser)) .thenReturn(newUser)