Login block should be more discerning about offering signup link. Fixed to be more in line with the login page

This commit is contained in:
mjollnir_
2005-09-13 22:21:20 +00:00
parent 1122563591
commit 5d8323d57c
+4 -2
View File
@@ -27,7 +27,7 @@ class block_login extends block_base {
$wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
}
if (is_internal_auth()) {
if ($CFG->auth == 'email') {
$signup = $wwwroot . '/login/signup.php';
$forgot = $wwwroot . '/login/forgot_password.php';
} else {
@@ -36,7 +36,9 @@ class block_login extends block_base {
} else {
$forgot = '';
}
$signup = $wwwroot . '/login/index.php'; // to see instructions!
if (!empty($CFG->auth_user_create)) {
$signup = $wwwroot . '/login/index.php'; // to see instructions!
}
}
$username = get_moodle_cookie() === 'nobody' ? '' : get_moodle_cookie();