Skip to content

Commit

Permalink
Merged from MOODLE_15_STABLE: Now the login block uses the same logic…
Browse files Browse the repository at this point in the history
… for forgot password as the login page does
  • Loading branch information
mjollnir_ committed Oct 26, 2005
1 parent 84362ae commit 41f7a86
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions blocks/login/block_login.php
Expand Up @@ -31,13 +31,15 @@ function get_content () {
$signup = $wwwroot . '/login/signup.php';
$forgot = $wwwroot . '/login/forgot_password.php';
} else {
if (!empty($CFG->changepassword)) {
$forgot = $CFG->changepassword;
} else {
$forgot = '';
}
if (!empty($CFG->auth_user_create)) {
$signup = $wwwroot . '/login/index.php'; // to see instructions!
if (!empty($CFG->{'auth_'.$CFG->auth.'_stdchangepassword'})
|| $CFG->changepassword
|| is_internal_auth() ) {
if (is_internal_auth() || !empty($CFG->{'auth_'.$CFG->auth.'_stdchangepassword'})) {
$forgot = $wwwroot . '/login/forgot_password.php';
}
else {
$changepassword = $CFG->changepassword;
}
}
}

Expand Down

0 comments on commit 41f7a86

Please sign in to comment.