summaryrefslogtreecommitdiff
path: root/plugins/session/BridgeSession.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/session/BridgeSession.php')
-rw-r--r--plugins/session/BridgeSession.php17
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;
- }
}