23
Views
4
Comments
Solved
OutSystem OTP. I can't see any value generated of my OTP inside my entity database
Question

Just want to ask what is the issue with this module? I am trying to generate an OTP to the user email once the user has entered their Name and Email at the login screen. But when I try to login I can't see any of the OTP Value at the entity database, but I can see the OTP generated number at my email? I am wonder how can i store the OTP value at the entity Database. 


Hopefully someone can take a look at it and guide me how can i solve this issue??


The module that i am doing now is attached to this question below the OML file. 

PermitRequest.oml
2024-05-08 06-29-37
Prince Aadil Khan Panwar
Solution

hi Freeman Tan,

Follow these things

1. add an attribute for otp.

2. after that first call generate otp action 

3. then, assign value of generated otp in source.otp=generatedotp.otp

4. then call create update login detail.

in extra for checking the otp is expired or not you can add this field as well.

Thanks

Prince


2024-01-04 09-21-21
Venkatesaiya
Solution

Hi Freeman Tan
 

Prakhar is right, You can generate OTP first and assign the generated OTP to the Required input source attribute. I attached the Images for your reference.

Thanks

2025-04-15 04-00-33
Prakhar Sharma
Solution

Hi,

Your issue is in this particular logic.

What you are doing here is that you are generating the OTP after you have already created the login detail.

The best way to implement this is to generate the OTP first, then assign the generated OTP in the desired Entity attribute and then do the CreateOrUpdateLoginDetail. This should save the OTP in the DB and also show on the Email.

Please let me know if this works...

Regards,

Prakhar Sharma

2024-05-08 06-29-37
Prince Aadil Khan Panwar
Solution

hi Freeman Tan,

Follow these things

1. add an attribute for otp.

2. after that first call generate otp action 

3. then, assign value of generated otp in source.otp=generatedotp.otp

4. then call create update login detail.

in extra for checking the otp is expired or not you can add this field as well.

Thanks

Prince


2024-01-04 09-21-21
Venkatesaiya
Solution

Hi Freeman Tan
 

Prakhar is right, You can generate OTP first and assign the generated OTP to the Required input source attribute. I attached the Images for your reference.

Thanks

UserImage.jpg
Deemo

Thank you so much I did the step like what you guy told me. I finally can see the OTP inside my database entity. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.