From Angular.js change log:
... After this CL, ng-trim no longer affects input[type=password], and will never trim the password value.