Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
101 UX Principles – 2nd edition - Second Edition

You're reading from  101 UX Principles – 2nd edition - Second Edition

Product type Book
Published in May 2022
Publisher Packt
ISBN-13 9781803234885
Pages 454 pages
Edition 2nd Edition
Languages
Author (1):
Will Grant Will Grant
Profile icon Will Grant

Table of Contents (18) Chapters

Preface
1. UX Field 2. Typography 3. Controls 4. Content 5. Navigation 6. Iconography 7. Input 8. Forms 9. User Data 10. Progress 11. Accessible Design 12. Journeys and State 13. Terminology 14. Expectations 15. UX Philosophy 16. Other Books You May Enjoy
17. Index

Always Allow the User to Paste into Password Fields

It’s difficult to fathom where this pattern of disabling paste came from or what possible security issue it’s supposed to address. Back in the 1990s, “webmasters” would disable right-click to prevent users from copying images. This worked for about 5 seconds, until people realized that they could just screen capture the image. Using some JavaScript on the page to prevent users from pasting into a password field is insane and potentially harmful for security.

Always Allow the User to Paste into Password Fields

Figure 41.1: Screenshot from security expert Troy Hunt’s blog post, “The ‘Cobra Effect’”: https://www.troyhunt.com/the-cobra-effect-that-is-disabling/

A user with a password manager app will have a long, impossible-to-remember password that has to be pasted into the field (especially on mobile, where it’s more tricky to autofill the field). However, disabling paste in a password field forces users...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}