Fix try-it meta-info getting issue

fix-try-it-meta-info
Pramila Niroshan 1 year ago
parent 5f5ac9d5ab
commit 388f34e3b8

@ -276,9 +276,7 @@ public class OTPManagementServiceImpl implements OTPManagementService {
public OneTimePinDTO generateOneTimePin(OneTimePinDTO oneTimePinDTO, boolean persistPin) throws OTPManagementException { public OneTimePinDTO generateOneTimePin(OneTimePinDTO oneTimePinDTO, boolean persistPin) throws OTPManagementException {
String otpValue = UUID.randomUUID().toString(); String otpValue = UUID.randomUUID().toString();
String metaInfo = oneTimePinDTO.getMetaInfo();
Gson gson = new Gson();
String metaInfo = gson.toJson(oneTimePinDTO.getMetaInfo());
oneTimePinDTO.setMetaInfo(metaInfo); oneTimePinDTO.setMetaInfo(metaInfo);
oneTimePinDTO.setOtpToken(otpValue); oneTimePinDTO.setOtpToken(otpValue);

Loading…
Cancel
Save