mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix try-it meta-info getting issue
This commit is contained in:
parent
5f5ac9d5ab
commit
388f34e3b8
@ -276,9 +276,7 @@ public class OTPManagementServiceImpl implements OTPManagementService {
|
||||
public OneTimePinDTO generateOneTimePin(OneTimePinDTO oneTimePinDTO, boolean persistPin) throws OTPManagementException {
|
||||
|
||||
String otpValue = UUID.randomUUID().toString();
|
||||
|
||||
Gson gson = new Gson();
|
||||
String metaInfo = gson.toJson(oneTimePinDTO.getMetaInfo());
|
||||
String metaInfo = oneTimePinDTO.getMetaInfo();
|
||||
|
||||
oneTimePinDTO.setMetaInfo(metaInfo);
|
||||
oneTimePinDTO.setOtpToken(otpValue);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user