comply with api key constraint

This commit is contained in:
Daan Hoogland 2018-06-13 16:45:30 +02:00
parent 4afdee9896
commit d126cd21ea

View File

@ -1734,6 +1734,8 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
UserVO newUser = new UserVO(user);
user.setExternalEntity(user.getUuid());
user.setUuid(UUID.randomUUID().toString());
user.setApiKey(null);
user.setSecretKey(null);
_userDao.update(user.getId(),user);
newUser.setAccountId(newAccountId);
boolean success = _userDao.remove(user.getId());