please help me out to solve this
Can you be more specific, please? I assume OTP means one-time password? What do you mean by “resend”?
Yeah!! OTP means one-time password and resend OTP is case when user didn’t receive OTP in that case we need to give option to user like “Resend OTP”. so they can request for OTP second time.
To ask for, and check, the password. I’d define a form. You can define and fill a
password slot with it, and check if the password is correct in the form’s validation function. This function can also set a boolean slot that indicates whether the password was correct. Then you can define a few rules that deal with the different scenarios.