summaryrefslogtreecommitdiff
path: root/plugins/drupal7/BridgeDrupal7.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/drupal7/BridgeDrupal7.php')
-rw-r--r--plugins/drupal7/BridgeDrupal7.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/drupal7/BridgeDrupal7.php b/plugins/drupal7/BridgeDrupal7.php
new file mode 100644
index 0000000..3f7ef67
--- /dev/null
+++ b/plugins/drupal7/BridgeDrupal7.php
@@ -0,0 +1,23 @@
+<?php
+
+class BridgeDrupal7 extends EjabberdAuthBridge {
+ function isuser($username, $server) {
+ return user_load_by_name($username) !== FALSE;
+ }
+
+ function auth($username, $server, $password) {
+ return user_authenticate($username, $password) !== FALSE;
+ }
+
+ function setpass($username, $server, $password) {
+ return FALSE;
+ }
+
+ function tryregister($username, $server, $password) {
+ return FALSE;
+ }
+
+ function removeuser($username, $server) {
+ return FALSE;
+ }
+}