PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/src/main/webapp/app/account/reset/finish/reset.finish.html

https://gitlab.com/pascalgrimaud/jhipster-test-gitlabci
HTML | 74 lines | 66 code | 8 blank | 0 comment | 0 complexity | f888cbeef00416bf03978dbd3b1f1958 MD5 | raw file
  1. <div>
  2. <div class="row">
  3. <div class="col-md-4 col-md-offset-4">
  4. <h1 data-translate="reset.finish.title">Reset password</h1>
  5. <div class="alert alert-danger" data-translate="reset.finish.messages.keymissing" ng-show="vm.keyMissing">
  6. <strong>The password reset key is missing.</strong>
  7. </div>
  8. <div class="alert alert-warning" ng-hide="vm.success || vm.keyMissing">
  9. <p data-translate="reset.finish.messages.info">Choose a new password</p>
  10. </div>
  11. <div class="alert alert-danger" ng-show="vm.error">
  12. <p data-translate="reset.finish.messages.error">Your password couldn't be reset. Remember a password request is only valid for 24 hours.</p>
  13. </div>
  14. <div class="alert alert-success" ng-show="vm.success">
  15. <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>
  16. </div>
  17. <div class="alert alert-danger" ng-show="vm.doNotMatch" data-translate="global.messages.error.dontmatch">
  18. The password and its confirmation do not match!
  19. </div>
  20. <div ng-hide="vm.keyMissing">
  21. <form ng-show="!vm.success" name="form" role="form" novalidate ng-submit="vm.finishReset()" show-validation>
  22. <div class="form-group">
  23. <label class="control-label" for="password" data-translate="global.form.newpassword">New password</label>
  24. <input type="password" class="form-control" id="password" name="password" placeholder="{{'global.form.newpassword.placeholder' | translate}}"
  25. ng-model="vm.resetAccount.password" ng-minlength=4 ng-maxlength=50 required>
  26. <div ng-show="form.password.$dirty && form.password.$invalid">
  27. <p class="help-block"
  28. ng-show="form.password.$error.required" data-translate="global.messages.validate.newpassword.required">
  29. Your password is required.
  30. </p>
  31. <p class="help-block"
  32. ng-show="form.password.$error.minlength" data-translate="global.messages.validate.newpassword.minlength">
  33. Your password is required to be at least 4 characters.
  34. </p>
  35. <p class="help-block"
  36. ng-show="form.password.$error.maxlength" data-translate="global.messages.validate.newpassword.maxlength">
  37. Your password cannot be longer than 50 characters.
  38. </p>
  39. </div>
  40. <password-strength-bar password-to-check="vm.resetAccount.password"></password-strength-bar>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label" for="confirmPassword" data-translate="global.form.confirmpassword">New password confirmation</label>
  44. <input type="password" class="form-control" id="confirmPassword" name="confirmPassword" placeholder="{{'global.form.confirmpassword.placeholder' | translate}}"
  45. ng-model="vm.confirmPassword" ng-minlength=4 ng-maxlength=50 required>
  46. <div ng-show="form.confirmPassword.$dirty && form.confirmPassword.$invalid">
  47. <p class="help-block"
  48. ng-show="form.confirmPassword.$error.required" data-translate="global.messages.validate.confirmpassword.required">
  49. Your password confirmation is required.
  50. </p>
  51. <p class="help-block"
  52. ng-show="form.confirmPassword.$error.minlength" data-translate="global.messages.validate.confirmpassword.minlength">
  53. Your password confirmation is required to be at least 4 characters.
  54. </p>
  55. <p class="help-block"
  56. ng-show="form.confirmPassword.$error.maxlength" data-translate="global.messages.validate.confirmpassword.maxlength">
  57. Your password confirmation cannot be longer than 50 characters.
  58. </p>
  59. </div>
  60. </div>
  61. <button type="submit" ng-disabled="form.$invalid" class="btn btn-primary" data-translate="reset.finish.form.button">Reset Password</button>
  62. </form>
  63. </div>
  64. </div>
  65. </div>
  66. </div>