From ab6ff8a4b54ee6faaf7a5c2f451ec53cfad6e2b5 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 22 Apr 2007 21:40:28 +0000 Subject: [PATCH] MDL-9491 fixed problem with broken change/reset password in db auth when using internal passwords --- auth/db/auth.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/auth/db/auth.php b/auth/db/auth.php index 23f4962c3d..020b3cff6e 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -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. * -- 2.39.5