title: AutoFill code from OTP SMS in the input field HTML for example in Safari
body: <p>How can I set up <a href="https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_an_html_input_element" rel="noreferrer">auto-complete</a> code from OTP SMS in Safari at the time of Captive Portal for Hotspot Mikrotik?</p>
  
  <p>The problem is that a person does not have time to remember the 6-digit OTP code from SMS, then exit the Captive Portal, see the code in iMessage and then re-tries to log in to the Wi-Fi network, but the old session is already "rotten" and he again needs to enter the phone number and send the OTP SMS code</p>
  
  <p>In HTML I wrote <code>&lt;input type="tel" id="single-factor-code-text-field" name="password" autocomplete="one-time-code" autofocus&gt;</code>, and in SMS I send <code>&lt;#&gt; Your SMS-code: {$code}</code>, but no magic happens.</p>