Browse files

Added a 'change password' button

  • Loading branch information...
1 parent 269eed6 commit e1ac42728da267fd9fe77d11e487397be3642847 moodler committed Oct 17, 2002
Showing with 6 additions and 0 deletions.
  1. +6 −0 user/view.php
View
6 user/view.php
@@ -123,6 +123,12 @@
// Print other functions
echo "<CENTER><TABLE ALIGN=CENTER><TR>";
+ if ($user->id == $USER->id) {
+ echo "<TD NOWRAP><P><FORM ACTION=\"$CFG->wwwroot/login/change_password.php\" METHOD=GET>";
+ echo "<INPUT type=hidden name=id value=\"$course->id\">";
+ echo "<INPUT type=submit value=\"".get_string("changepassword")."\">";
+ echo "</FORM></P></TD>";
+ }
if ((isstudent($course->id) and ($user->id == $USER->id)) or
(isteacher($course->id) and isstudent($course->id, $user->id)) ) {
echo "<TD NOWRAP><P><FORM ACTION=\"../course/unenrol.php\" METHOD=GET>";

0 comments on commit e1ac427

Please sign in to comment.