Allow pasting, but make sure the user notes that everything he pasted did not match the maximum length. I use KeePass, which generates 10-character passwords for me, it is a mess when my password does not work, because only the first 8 characters or the like are used in registration.
Also, make sure the login password fields are the same maximum length as the registration password fields.
sisve source share