Hi **Dimitris**,
If you follow the docs steps by step , you will have a working OTP authentication.
NB: OTP has nothing to do with **https://[My_Hotname]/identity/register**
Make sure the correct script is enable in Gluu admin UI under **Manage custom scripts** section.