|
Revision 550, 310 bytes
(checked in by misja, 2 years ago)
|
Made the auth/ section behave more like the mod/ handling by making the authentication call unique to the module, e.g. internal_authenticate_user_login().
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
function internal_authenticate_user_login($username,$password) { |
|---|
| 4 |
|
|---|
| 5 |
return get_record_select('users',"username = ? AND password = ? AND active = ? AND user_type = ? ", |
|---|
| 6 |
array($username,md5($password),'yes','person')); |
|---|
| 7 |
} |
|---|
| 8 |
|
|---|
| 9 |
?> |
|---|
| 10 |
|
|---|