changepassword.php 820 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Reset user password form
  4. */
  5. $text = elgg_autop(elgg_echo('user:changepassword:change_password_confirm'));
  6. $password1_label = elgg_echo('user:password:label');
  7. $password1 = elgg_view('input/password', array(
  8. 'name' => 'password1',
  9. ));
  10. $password2_label = elgg_echo('user:password2:label');
  11. $password2 = elgg_view('input/password', array(
  12. 'name' => 'password2',
  13. ));
  14. $u = elgg_view('input/hidden', array(
  15. 'name' => 'u',
  16. 'value' => $vars['guid'],
  17. ));
  18. $c = elgg_view('input/hidden', array(
  19. 'name' => 'c',
  20. 'value' => $vars['code'],
  21. ));
  22. $submit = elgg_view('input/submit', array(
  23. 'value' => elgg_echo('changepassword')
  24. ));
  25. echo <<<HTML
  26. $text
  27. <div><label>$password1_label</label>$password1</div>
  28. <div><label>$password2_label</label>$password2</div>
  29. <div class="elgg-foot">
  30. $u $c
  31. $submit
  32. </div>
  33. HTML;