From 63caacdc8b79e45da047a5e3f2e7ed17b7e2a50d Mon Sep 17 00:00:00 2001 From: "Gergely Polonkai (W00d5t0ck)" Date: Mon, 8 Oct 2012 13:00:36 +0200 Subject: [PATCH] Created the NullAuth backend. --- src/SmsGateway/Auth/NullAuth.php | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/SmsGateway/Auth/NullAuth.php diff --git a/src/SmsGateway/Auth/NullAuth.php b/src/SmsGateway/Auth/NullAuth.php new file mode 100644 index 0000000..12977ad --- /dev/null +++ b/src/SmsGateway/Auth/NullAuth.php @@ -0,0 +1,50 @@ +logger = $logger; + } + + public function getLogger() + { + return $this->logger; + } + + public function removeToken($token, $ip, $sessionId) + { + return true; + } + + public function isTokenValid($token, $ip, $sessionId) + { + return true; + } + + public function authenticate($username, $password, $ip, $sessionId) + { + return true; + } + + public function getTokenUsername($token, $ip, $sessionId) + { + return 'unknown'; + } + + public function getToken($username, $ip, $sessionId) + { + return 'alwaysValid'; + } +}