Security: Fixing medium security vulnerability in password input handling

CVE and security advisory will follow.


https://github.com/owncloud/client/pull/12430
https://github.com/owncloud/client/pull/12431
