Skip to content

Commit

Permalink
MDL-9491 fixed problem with broken change/reset password in db auth w…
Browse files Browse the repository at this point in the history
…hen using internal passwords
  • Loading branch information
skodak committed Apr 22, 2007
1 parent d972bfd commit ab6ff8a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion auth/db/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ function validate_form(&$form, &$err) {
* @return bool
*/
function is_internal() {
return false;
return ($this->config->passtype == 'internal');
}

/**
Expand Down Expand Up @@ -605,6 +605,15 @@ function change_password_url() {
}
}

/**
* Returns true if plugin allows resetting of internal password.
*
* @return bool
*/
function can_reset_password() {
return ($this->config->passtype == 'internal');
}

/**
* Prints a form for configuring this authentication plugin.
*
Expand Down

0 comments on commit ab6ff8a

Please sign in to comment.