Permalink
Browse files

The login page now shows different instructions depending on the

authentication mechanism.
  • Loading branch information...
1 parent faebaf0 commit 8f1cba2858e39ea5e92d5a83542d430976814cff martin committed Sep 26, 2002
Showing with 22 additions and 7 deletions.
  1. +4 −0 lang/en/moodle.php
  2. +18 −7 login/index_form.html
View
@@ -237,6 +237,10 @@
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";
View
@@ -60,13 +60,24 @@
</FONT> </TD>
<TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellheading?>">
<FONT SIZE=2>
- <P><? print_string("loginsteps", "", "signup.php") ?></P>
- </FONT>
- <CENTER>
- <FORM NAME="form4" ACTION="signup.php" METHOD=post>
- <INPUT type="submit" NAME="Submit" VALUE="<? print_string("startsignup") ?>">
- </FORM>
- </CENTER>
+ <? switch ($CFG->auth) {
+ case "email": ?>
+ <P><? print_string("loginsteps", "", "signup.php") ?></P>
+ </FONT>
+ <CENTER>
+ <FORM NAME="form4" ACTION="signup.php" METHOD=post>
+ <INPUT type="submit" NAME="Submit" VALUE="<? print_string("startsignup") ?>">
+ </FORM>
+ </CENTER>
+ <? break;
+ case "none": ?>
+ <P><? print_string("loginstepsnone") ?></P>
+ <? break;
+ default:
+ echo "ERROR: I don't know about the current authentication!";
+ }
+ ?>
+
</TD>
</TR>
</TABLE>

0 comments on commit 8f1cba2

Please sign in to comment.