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.
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
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.
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
Thank you so much I did the step like what you guy told me. I finally can see the OTP inside my database entity.