]> git.mjollnir.org Git - moodle.git/commitdiff
login form: MDL-20050 forgotton password should be a link, not a button.
authortjhunt <tjhunt>
Tue, 25 Aug 2009 19:45:54 +0000 (19:45 +0000)
committertjhunt <tjhunt>
Tue, 25 Aug 2009 19:45:54 +0000 (19:45 +0000)
It is what uses expect these days. Credit to Olli as part of his GSOC project.

login/index_form.html

index 58bc36e3ff59cb86e1379e5eff212261265cd293..4f5319b1eb512c4b0132b4d7d61748b32724848b 100644 (file)
@@ -38,6 +38,7 @@ if ($show_instructions) {
               <input type="password" name="password" id="password" size="15" value="" />
               <input type="submit" value="<?php print_string("login") ?>" />
               <input type="hidden" name="testcookies" value="1" />
+              <div><a href="forgot_password.php"><?php print_string("forgotten") ?></a></div>
             </div>
             <div class="clearer"><!-- --></div>
           </div>
@@ -59,18 +60,6 @@ if ($show_instructions) {
         </form>
       </div>
 <?php } ?>
-
-      <div class="subcontent forgotsub">
-        <div class="desc">
-          <?php print_string("forgotten") ?>
-        </div>
-        <form action="forgot_password.php" method="post" id="changepassword">
-          <div class="forgotform">
-            <input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
-            <input type="submit" value="<?php print_string("passwordrecovery") ?>" />
-          </div>
-        </form>
-      </div>
      </div>
 <?php if ($show_instructions) { ?>
     <div class="signuppanel">