I am using AngularJS login form. I noticed that 1/10 times that the password is being sent partially if the user pressed the enter key really quickly. For example, if the password is "happygolucky", it will send instead "happy."
I can't seem to find a similar problem posted elsewhere and am at a lost as to why it occurs in the first place.
This is the form that I am using:
<form name="loginForm" novalidate ng-submit="loginFormDirectiveCtrl.login()">
<div class="form-group" ng-class="{ 'has-error': loginForm.email.$dirty && loginForm.email.$error.required }">
<label for="email">Company Email</label>
<input type="text" name="email" id="email" class="form-control" ng-model="loginFormDirectiveCtrl.email"
required/>
<span ng-show="loginForm.username.$dirty && loginForm.email.$error.required"
class="help-block">Company email is required</span>
</div>
<div class="form-group"
ng-class="{ 'has-error': loginForm.password.$dirty && loginForm.password.$error.required }">
<label for="password">Password</label>
<input type="password" name="password" id="password" class="form-control"
ng-model="loginFormDirectiveCtrl.password" required/>
<span ng-show="loginForm.password.$dirty && loginForm.password.$error.required"
class="help-block">Password is required</span>
</div>
<button class="login-button" type="submit"
ng-disabled="loginForm.$invalid || loginFormDirectiveCtrl.loading">
<span ng-hide="loginFormDirectiveCtrl.loading">LOGIN</span>
</button>
</form>