change_password.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <navbar model="navModel"></navbar>
  2. <div class="page-container">
  3. <div class="page-header">
  4. <h1>Change password</h1>
  5. </div>
  6. <div ng-if="ldapEnabled || authProxyEnabled">
  7. You cannot change password when ldap or auth proxy authentication is enabled.
  8. <br>
  9. <br>
  10. <a class="btn-text" href="profile">Back to profile</a>
  11. </div>
  12. <form name="userForm" class="gf-form-group" ng-hide="ldapEnabled || authProxyEnabled">
  13. <div class="gf-form">
  14. <span class="gf-form-label width-10">Old Password</span>
  15. <input class="gf-form-input max-width-21" type="password" required ng-model="command.oldPassword">
  16. </div>
  17. <div class="gf-form">
  18. <span class="gf-form-label width-10">New Password</span>
  19. <input class="gf-form-input max-width-21" type="password" required ng-minlength="4" ng-model="command.newPassword">
  20. </div>
  21. <div class="gf-form">
  22. <span class="gf-form-label width-10">Confirm Password</span>
  23. <input class="gf-form-input max-width-21" type="password" required ng-minlength="4" ng-model="command.confirmNew">
  24. </div>
  25. <div class="gf-form-button-row">
  26. <button type="submit" class="btn btn-success" ng-click="changePassword()">Change Password</button>
  27. <a class="btn-text" href="profile">Cancel</a>
  28. </div>
  29. </form>
  30. </div>