change_password.html 1.3 KB

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