Changeset 550
- Timestamp:
- 09/15/06 08:29:06 (2 years ago)
- Files:
-
- devel/auth/internal/lib.php (modified) (1 diff)
- devel/lib/elgglib.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/auth/internal/lib.php
r549 r550 1 1 <?php 2 2 // this is internal or default authentication 3 function authenticate_user_login($username,$password) {3 function internal_authenticate_user_login($username,$password) { 4 4 5 5 return get_record_select('users',"username = ? AND password = ? AND active = ? AND user_type = ? ", devel/lib/elgglib.php
r528 r550 3393 3393 3394 3394 require_once($CFG->dirroot . 'auth/' . $CFG->auth . '/lib.php'); 3395 3396 // Module authentication function 3397 $function = $CFG->auth.'_authenticate_user_login'; 3398 3399 // Does the function exist 3400 if (!function_exists($function)) { 3401 print 'Error: function '.$function.' not found in auth/' . $CFG->auth . '/lib.php'; 3402 return false; 3403 } 3395 3404 3396 if (!$user = authenticate_user_login($username,$password)) {3405 if (!$user = $function($username,$password)) { 3397 3406 return false; 3398 3407 }
