|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00015 if (!defined('MOODLE_INTERNAL')) { 00016 die('Direct access to this script is forbidden.'); 00017 } 00018 00019 require_once($CFG->libdir.'/authlib.php'); 00020 00024 class auth_plugin_nologin extends auth_plugin_base { 00025 00026 00030 function auth_plugin_nologin() { 00031 $this->authtype = 'nologin'; 00032 } 00033 00038 function user_login($username, $password) { 00039 return false; 00040 } 00041 00045 function user_update_password($user, $newpassword) { 00046 return false; 00047 } 00048 00049 function prevent_local_passwords() { 00050 // just in case, we do not want to loose the passwords 00051 return false; 00052 } 00053 00059 function is_internal() { 00060 //we do not know if it was internal or external originally 00061 return true; 00062 } 00063 00069 function can_change_password() { 00070 return false; 00071 } 00072 00076 function can_reset_password() { 00077 return false; 00078 } 00079 00080 } 00081 00082