diff options
author | Christoph Burschka | 2014-01-16 19:34:39 +0100 |
---|---|---|
committer | Christoph Burschka | 2014-01-16 19:34:39 +0100 |
commit | 841bcac241bac980d5e943793ffda3372d7f8f82 (patch) | |
tree | 93ffd23c4340426358ce3ee86869cd785a195cd8 /plugins/session/BridgeSession.php | |
parent | Finally remove unused setpass/register hooks. (diff) | |
download | ejabberd-auth-php-841bcac241bac980d5e943793ffda3372d7f8f82.tar.gz |
Big multiple-plugins patch (fixes #2).
Diffstat (limited to 'plugins/session/BridgeSession.php')
-rw-r--r-- | plugins/session/BridgeSession.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/session/BridgeSession.php b/plugins/session/BridgeSession.php index 58e2208..d9c3afc 100644 --- a/plugins/session/BridgeSession.php +++ b/plugins/session/BridgeSession.php @@ -11,11 +11,6 @@ class BridgeSession extends EjabberdAuthBridge { $this->_isuser = $this->db->prepare(sprintf('SELECT COUNT(*) FROM `%s` WHERE `username` = :user AND `created` >= :limit;', $this->table)); $this->_auth = $this->db->prepare(sprintf('DELETE FROM `%s` WHERE `username` = :user AND `secret` = :secret AND `created` >= :limit;', $this->table)); $this->_prune = $this->db->prepare(sprintf('DELETE COUNT(*) FROM `%s` WHERE `created` < :limit;', $this->table)); - $this->_create = $this->db->prepare(sprintf('INSERT INTO `%s` (`username`, `secret`, `created`) VALUES (:user, :secret, :time);', $this->table)); - } - - function create($entry) { - $this->_create->execute([':user' => $entry['user'], ':secret' => $entry['secret'], ':time' => $entry['time']]); } function prune() { @@ -33,16 +28,4 @@ class BridgeSession extends EjabberdAuthBridge { $this->_auth->execute([':user' => $username, ':secret' => $password, ':limit' => time() - $this->timeout]); return $this->_auth->rowCount() > 0; } - - function setpass($username, $server, $password) { - return FALSE; - } - - function tryregister($username, $server, $password) { - return FALSE; - } - - function removeuser($username, $server) { - return FALSE; - } } |