Also provide client side password validation for password setup and reset forms

This commit is contained in:
Johannes Zellner
2016-01-21 16:08:51 +01:00
parent 19bb0a6ec2
commit 55e556c725
2 changed files with 7 additions and 1 deletions

View File

@@ -25,6 +25,9 @@ app.controller('Controller', [function () {}]);
<div class="form-group" ng-class="{ 'has-error': setupForm.password.$dirty && setupForm.password.$invalid }">
<label class="control-label" for="inputPassword">New Password</label>
<div class="control-label" ng-show="setupForm.password.$dirty && setupForm.password.$invalid">
<small ng-show="setupForm.password.$dirty && setupForm.password.$invalid">Password must be 8-30 character with at least one uppercase, one numeric and one special character</small>
</div>
<input type="password" class="form-control" id="inputPassword" ng-model="password" name="password" ng-maxlength="30" ng-minlength="8" autofocus required>
</div>
<div class="form-group" ng-class="{ 'has-error': setupForm.passwordRepeat.$dirty && (setupForm.passwordRepeat.$invalid || password !== passwordRepeat) }">