Skip to content

Commit

Permalink
The login page now shows different instructions depending on the
Browse files Browse the repository at this point in the history
authentication mechanism.
  • Loading branch information
martin committed Sep 26, 2002
1 parent faebaf0 commit 8f1cba2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
4 changes: 4 additions & 0 deletions lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
25 changes: 18 additions & 7 deletions login/index_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.