reset_password.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <page-header model="navModel"></page-header>
  2. <div class="page-container page-body">
  3. <div class="signup">
  4. <h3 class="p-b-1">Reset password</h3>
  5. <div ng-if="ldapEnabled || authProxyEnabled">
  6. You cannot reset password when LDAP or Auth Proxy authentication is enabled.
  7. </div>
  8. <div ng-if="disableLoginForm">
  9. You cannot reset password when login form is disabled.
  10. </div>
  11. <form name="sendResetForm" class="login-form gf-form-group" ng-show="mode === 'send'" ng-hide="ldapEnabled || authProxyEnabled || disableLoginForm || mode === 'reset'">
  12. <div class="gf-form">
  13. <span class="gf-form-label width-7">User</span>
  14. <input type="text" name="username" class="gf-form-input max-width-14" required ng-model='formModel.userOrEmail' placeholder="email or username">
  15. </div>
  16. <div class="gf-form-button-row">
  17. <button type="submit" class="btn btn-primary" ng-click="sendResetEmail();" ng-disabled="!sendResetForm.$valid">
  18. Reset Password
  19. </button>
  20. <a href="login" class="btn btn-inverse">
  21. Back
  22. </a>
  23. </div>
  24. </form>
  25. <div ng-show="mode === 'email-sent'">
  26. An email with a reset link has been sent to the email address. <br>
  27. You should receive it shortly.
  28. <div class="p-t-1">
  29. <a href="login" class="btn btn-primary p-t-1">
  30. Login
  31. </a>
  32. </div>
  33. </div>
  34. <form name="resetForm" class="login-form gf-form-group" ng-show="mode === 'reset'">
  35. <div class="gf-form">
  36. <span class="gf-form-label width-9">New Password</span>
  37. <input type="password" name="NewPassword" class="gf-form-input max-width-14" required ng-minlength="4" ng-model='formModel.newPassword' placeholder="password" watch-change="formModel.newPassword = inputValue;">
  38. </div>
  39. <div class="gf-form">
  40. <span class="gf-form-label width-9">Confirm Password</span>
  41. <input type="password" name="ConfirmPassword" class="gf-form-input max-width-14" required ng-minlength="4" ng-model='formModel.confirmPassword' placeholder="confirm password">
  42. </div>
  43. <div class="signup__password-strength">
  44. <password-strength password="formModel.newPassword"></password-strength>
  45. </div>
  46. <div class="gf-form-button-row">
  47. <button type="submit" class="btn btn-primary" ng-click="submitReset();" ng-disabled="!resetForm.$valid">
  48. Reset Password
  49. </button>
  50. </div>
  51. </form>
  52. </div>
  53. </div>
  54. <footer />