What Is Fn_User_Send_Otp Used For?

Hi, so in fn.users.php I saw a function named fn_user_send_otp, and from what I can see it generates an otp password and then sends it to the email of the user who called that function.

But I can't seem to find where it's used, is there some sort of setting I have to enable in the Admin panel? Is it used for registration? Which controller files use this function?

It is a part of new functionality - login by one time password on checkout if entered email exists in the database

Ah I see, this is specifically used ONLY in login at checkout?

Ah I see, this is specifically used ONLY in login at checkout?

In the current version yes. Possibly this functionality will be extended later

Hmmmm, I activated the Customer Sign in block at the Layouts page of Checkout in the admin panel but I can't seem to see the actual option when I go to the Storefront.

When I click the button at Checkout, this is the popup I see. JevFYf5.jpg


https://pasteboard.co/JevFYf5.jpg

Specify e-mail which exists in the database and place order. You will see

https://prnt.sc/t5fotc

Ah I see, thank you!