When merging users remove the email from the user to be merged

This commit is contained in:
George Kalampokis 2020-10-29 11:54:15 +02:00
parent 35fe6a75fe
commit c1d473f8d4
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ public class MergeEmailConfirmationManager {
databaseRepository.getUserDmpDao().createOrUpdate(userDmp); databaseRepository.getUserDmpDao().createOrUpdate(userDmp);
}); });
oldUser.setUserStatus((short)1); oldUser.setUserStatus((short)1);
oldUser.setEmail(null);
databaseRepository.getUserInfoDao().createOrUpdate(oldUser); databaseRepository.getUserInfoDao().createOrUpdate(oldUser);
} }