Don’t limit your passwords
There is nothing more frustrating than seeing so many sites that put a ridiculously low upper limit on password length. Modern websites should be using modern password hashing, and every modern hash function handles long passwords just fine.