/src/main/webapp/app/account/reset/finish/reset.finish.html
HTML | 74 lines | 66 code | 8 blank | 0 comment | 0 complexity | f888cbeef00416bf03978dbd3b1f1958 MD5 | raw file
- <div>
- <div class="row">
- <div class="col-md-4 col-md-offset-4">
- <h1 data-translate="reset.finish.title">Reset password</h1>
- <div class="alert alert-danger" data-translate="reset.finish.messages.keymissing" ng-show="vm.keyMissing">
- <strong>The password reset key is missing.</strong>
- </div>
- <div class="alert alert-warning" ng-hide="vm.success || vm.keyMissing">
- <p data-translate="reset.finish.messages.info">Choose a new password</p>
- </div>
- <div class="alert alert-danger" ng-show="vm.error">
- <p data-translate="reset.finish.messages.error">Your password couldn't be reset. Remember a password request is only valid for 24 hours.</p>
- </div>
- <div class="alert alert-success" ng-show="vm.success">
- <p data-translate="reset.finish.messages.success" translate-compile><strong>Your password has been reset.</strong> Please <a class="alert-link" href="" ng-click="vm.login()">sign in</a>.</p>
- </div>
- <div class="alert alert-danger" ng-show="vm.doNotMatch" data-translate="global.messages.error.dontmatch">
- The password and its confirmation do not match!
- </div>
- <div ng-hide="vm.keyMissing">
- <form ng-show="!vm.success" name="form" role="form" novalidate ng-submit="vm.finishReset()" show-validation>
- <div class="form-group">
- <label class="control-label" for="password" data-translate="global.form.newpassword">New password</label>
- <input type="password" class="form-control" id="password" name="password" placeholder="{{'global.form.newpassword.placeholder' | translate}}"
- ng-model="vm.resetAccount.password" ng-minlength=4 ng-maxlength=50 required>
- <div ng-show="form.password.$dirty && form.password.$invalid">
- <p class="help-block"
- ng-show="form.password.$error.required" data-translate="global.messages.validate.newpassword.required">
- Your password is required.
- </p>
- <p class="help-block"
- ng-show="form.password.$error.minlength" data-translate="global.messages.validate.newpassword.minlength">
- Your password is required to be at least 4 characters.
- </p>
- <p class="help-block"
- ng-show="form.password.$error.maxlength" data-translate="global.messages.validate.newpassword.maxlength">
- Your password cannot be longer than 50 characters.
- </p>
- </div>
- <password-strength-bar password-to-check="vm.resetAccount.password"></password-strength-bar>
- </div>
- <div class="form-group">
- <label class="control-label" for="confirmPassword" data-translate="global.form.confirmpassword">New password confirmation</label>
- <input type="password" class="form-control" id="confirmPassword" name="confirmPassword" placeholder="{{'global.form.confirmpassword.placeholder' | translate}}"
- ng-model="vm.confirmPassword" ng-minlength=4 ng-maxlength=50 required>
- <div ng-show="form.confirmPassword.$dirty && form.confirmPassword.$invalid">
- <p class="help-block"
- ng-show="form.confirmPassword.$error.required" data-translate="global.messages.validate.confirmpassword.required">
- Your password confirmation is required.
- </p>
- <p class="help-block"
- ng-show="form.confirmPassword.$error.minlength" data-translate="global.messages.validate.confirmpassword.minlength">
- Your password confirmation is required to be at least 4 characters.
- </p>
- <p class="help-block"
- ng-show="form.confirmPassword.$error.maxlength" data-translate="global.messages.validate.confirmpassword.maxlength">
- Your password confirmation cannot be longer than 50 characters.
- </p>
- </div>
- </div>
- <button type="submit" ng-disabled="form.$invalid" class="btn btn-primary" data-translate="reset.finish.form.button">Reset Password</button>
- </form>
- </div>
- </div>
- </div>
- </div>