OTP, automated fill-in from apple passwords

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Senior Member
    • Feb 2022
    • 455

    OTP, automated fill-in from apple passwords

    Hey guys, as you know, apple added a way to automatically input OTP tokens to the website if you use apple passwords (90% of clients do).

    I see that LinkedIn added this proper field name, please, can we do the same?



    Thanks!
    Attached Files
  • yuri
    Member
    • Mar 2014
    • 8621

    #2
    Hey guys! I am not sure if I can do it on the main source code myself but here is the deal. When 2FA code is needed all users who use apple passwords (majority in my case), they have open the app on computer or phone, then they copy code and go back to Safari to paste it. Very lengthy, there is an autocomplete from apple,
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8621

      #3
      Hi,

      Is only `autocomplete="one-time-code"` enough to make it work? It is not to be the case, maybe now it's enough.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • Russ
        Senior Member
        • Feb 2022
        • 455

        #4
        Hey yuri ,

        Regarding duplicate:
        My bad, honestly forgot I already posted.

        >Is only `autocomplete="one-time-code"` enough to make it work?

        Yes, I added in console this and it worked on my browser until I reloaded the page.

        Please adjust:
        Old code:
        <input type="text" data-name="field-code" class="form-control" autocapitalize="off" spellcheck="false" tabindex="1" autocomplete="new-password" maxlength="7">

        Replace with:
        <input type="text" data-name="field-code" class="form-control" autocapitalize="off" spellcheck="false" tabindex="1" autocomplete="one-time-code" maxlength="7">​

        Thank you!

        Comment

        Working...