Browse files

Bump. Now forgot password page is 100% HTTPS if required.

  • Loading branch information...
1 parent 0e48704 commit 87d7fdc584adb5e4aad19121e6840ee5f23c3631 stronk7 committed Jul 15, 2005
Showing with 5 additions and 2 deletions.
  1. +4 −1 login/forgot_password.php
  2. +1 −1 login/forgot_password_form.html
View
5 login/forgot_password.php
@@ -5,6 +5,9 @@
optional_variable($p, "");
optional_variable($s, "");
+ //HTTPS is potentially required in this page
+ httpsrequired();
+
if (!empty($p) and !empty($s)) { // User trying to authenticate change password routine
update_login_count();
@@ -29,7 +32,7 @@
print_header(get_string("passwordsent"), get_string("passwordsent"), get_string("passwordsent"));
$a->email = $user->email;
- $a->link = "$CFG->wwwroot/login/change_password.php";
+ $a->link = "$CFG->httpswwwroot/login/change_password.php";
notice(get_string("emailpasswordsent", "", $a), $a->link);
}
}
View
2 login/forgot_password_form.html
@@ -6,7 +6,7 @@
</td>
<td>
- <form action="<?php p("$CFG->wwwroot/login/forgot_password.php") ?>" method="post" name="form" id="form">
+ <form action="forgot_password.php" method="post" name="form" id="form">
<table>
<tr>
<td class="label"><?php print_string("email") ?>:</td>

0 comments on commit 87d7fdc

Please sign in to comment.