Added option to allow password reset (by Mithy).
[fa-stable.git] / access / login.php
index fbabe47ef317ca7ce1c3efa48e6223fba2df687a..799c91c175ff7f102c3b473cc7c7a6542f77ea5b 100644 (file)
@@ -29,6 +29,9 @@ function defaultCompany()
        else
        {
                $demo_text = _("Please login here");
+    if (@$allow_password_reset) {
+      $demo_text .= " "._("or")." <a href='$path_to_root/index.php?reset=1'>"._("request new password")."</a>";
+    }
        }
 
        if (check_faillog())
@@ -154,4 +157,4 @@ function defaultCompany()
        echo "</table><br><br>\n";
        echo "</body></html>\n";
 
-?>
\ No newline at end of file
+?>