It did not work first try for me.
When I double clicked on the passcode to copy, a space was added to the tail of the passcode, which cause it to be rejected. When I specifically copied just the passcode digits it worked fine.
If anyone else is having trouble, please make some noise.