MDL-27953 auth: introduced new function can_be_manually_set() to the authentication base class

This commit is contained in:
Mark Nelson
2013-07-29 17:06:08 +08:00
parent bdd045c5ec
commit 9b29f68648
7 changed files with 63 additions and 5 deletions
+15 -2
View File
@@ -124,7 +124,6 @@ class auth_plugin_base {
var $customfields = null;
/**
* This is the primary method that is used by the authenticate_user_login()
* function in moodlelib.php.
*
@@ -509,6 +508,21 @@ class auth_plugin_base {
return false;
}
/**
* Returns whether or not this authentication plugin can be manually set
* for users, for example, when bulk uploading users.
*
* This should be overriden by authentication plugins where setting the
* authentication method manually is allowed.
*
* @return bool
* @since 2.6
*/
function can_be_manually_set() {
// Override if needed.
return false;
}
/**
* Returns a list of potential IdPs that this authentication plugin supports.
* This is used to provide links on the login page.
@@ -550,7 +564,6 @@ class auth_plugin_base {
return $this->customfields;
}
}
/**