mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-9491 fixed problem with broken change/reset password in db auth when using internal passwords
This commit is contained in:
parent
d972bfd01a
commit
ab6ff8a4b5
@ -576,7 +576,7 @@ class auth_plugin_db extends auth_plugin_base {
|
||||
* @return bool
|
||||
*/
|
||||
function is_internal() {
|
||||
return false;
|
||||
return ($this->config->passtype == 'internal');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -605,6 +605,15 @@ class auth_plugin_db extends auth_plugin_base {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user