diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-20 08:32:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-20 08:32:15 +0000 |
commit | 8c99cc87702cd47f62e6356be98dc874b051abe9 (patch) | |
tree | b7139544ebe83cba68ce405691f3223055cf4316 /lib/class/api.class.php | |
parent | 5869da3fe58876644364941fa7216caee09adbf5 (diff) | |
download | ampache-8c99cc87702cd47f62e6356be98dc874b051abe9.tar.gz ampache-8c99cc87702cd47f62e6356be98dc874b051abe9.tar.bz2 ampache-8c99cc87702cd47f62e6356be98dc874b051abe9.zip |
added genres as a new xml method, and improved logging
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r-- | lib/class/api.class.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php index 29bc0bff..1ebc86e8 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -58,6 +58,9 @@ class Api { $user_id = Dba::escape($user_id); $timestamp = intval($timestamp); $ip = ip2int($ip); + + // Log this attempt + debug_event('API','Login Attempt, IP:' . int2ip($ip) . ' Time:' . $timestamp . ' User:' . $user_id . ' Auth:' . $passphrase,'1'); // Run the query and return the passphrases as we'll have to mangle them // to figure out if they match what we've got @@ -72,11 +75,14 @@ class Api { if ($md5pass === $passphrase) { // Create the Session, in this class for now needs to be moved $token = self::create_session($row['level'],$ip,$user_id); + debug_event('API','Login Success, passphrase matched','1'); return $token; } // match } // end while + debug_event('API','Login Failed, unable to match passphrase','1'); + } // handhsake /** |