]> git.mjollnir.org Git - moodle.git/commitdiff
The login page now shows different instructions depending on the
authormartin <martin>
Thu, 26 Sep 2002 07:13:14 +0000 (07:13 +0000)
committermartin <martin>
Thu, 26 Sep 2002 07:13:14 +0000 (07:13 +0000)
authentication mechanism.

lang/en/moodle.php
login/index_form.html

index 816dc36191ac7754f3c19e882b81511ead2c4b76..deca426cbad6ee26e64f217fc9780619eff4e7a7 100644 (file)
@@ -237,6 +237,10 @@ $string['loginsteps'] = "Hi! For full access to courses you'll need to take
    to enter your personal username and password (in the form on this page)
    to log in and access any course you have enrolled in.
    </OL>";
+$string['loginstepsnone'] = "Hi!<P>For full access to courses you'll need to create 
+yourself an account.<P>All you need to do is make up a username and password and use it in
+the form on this page!<P>If someone else has already chosen your username
+then you'll have to try again using a different username.";
 $string['logout'] = "Logout";
 $string['logs'] = "Logs";
 $string['makeafolder'] = "Make a folder";
index 51f2f28c8f4353c509f9179d1bc76548609463f8..e83c5a02791f36eaee6023e3c33cdfb5ad6c0d3d 100644 (file)
       </FONT> </TD>\r
     <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellheading?>">\r
       <FONT SIZE=2>\r
-      <P><? print_string("loginsteps", "", "signup.php") ?></P>\r
-      </FONT>\r
-        <CENTER>\r
-        <FORM NAME="form4" ACTION="signup.php" METHOD=post>\r
-        <INPUT type="submit" NAME="Submit" VALUE="<? print_string("startsignup") ?>">\r
-        </FORM>\r
-        </CENTER>\r
+      <? switch ($CFG->auth) {\r
+           case "email":             ?>\r
+             <P><? print_string("loginsteps", "", "signup.php") ?></P>\r
+             </FONT>\r
+             <CENTER>\r
+             <FORM NAME="form4" ACTION="signup.php" METHOD=post>\r
+             <INPUT type="submit" NAME="Submit" VALUE="<? print_string("startsignup") ?>">\r
+             </FORM>\r
+             </CENTER>\r
+      <?     break;\r
+           case "none":              ?>\r
+             <P><? print_string("loginstepsnone") ?></P>\r
+      <?     break;\r
+           default:\r
+             echo "ERROR: I don't know about the current authentication!";\r
+         }\r
+      ?>\r
+\r
       </TD>\r
   </TR>\r
 </TABLE>\r