GUAC-1176: Explicitly specify ng-trim="false" for password fields. The AngularJS documentation states password fields will not be trimmed, but that is apparently only true if the input field type does not vary dynamically. The trimmed/untrimmed state seems only to be set when the directive initially loads.

This commit is contained in:
Michael Jumper
2015-06-08 10:27:38 -07:00
parent 68af0bab7e
commit 9ac64441cd

View File

@@ -1,4 +1,4 @@
<div class="password-field"> <div class="password-field">
<input type="{{passwordInputType}}" ng-model="model" autocorrect="off" autocapitalize="off"/> <input type="{{passwordInputType}}" ng-model="model" ng-trim="false" autocorrect="off" autocapitalize="off"/>
<div class="icon toggle-password" ng-click="togglePassword()" title="{{getTogglePasswordHelpText() | translate}}"></div> <div class="icon toggle-password" ng-click="togglePassword()" title="{{getTogglePasswordHelpText() | translate}}"></div>
</div> </div>