summaryrefslogtreecommitdiff
path: root/plugins/drupal8/BridgeDrupal8.php
diff options
context:
space:
mode:
authorChristoph Burschka2012-11-03 01:42:25 +0100
committerChristoph Burschka2012-11-03 01:42:25 +0100
commit552d050eb74a6e3a1252b581b02d74fcddb331ad (patch)
treec96f7766cb3937faa492eab62a9cc52c17b194d3 /plugins/drupal8/BridgeDrupal8.php
parentSend server parameter in isuser command. (diff)
downloadejabberd-auth-php-552d050eb74a6e3a1252b581b02d74fcddb331ad.tar.gz
New Drupal 8 plugin.
Diffstat (limited to 'plugins/drupal8/BridgeDrupal8.php')
-rw-r--r--plugins/drupal8/BridgeDrupal8.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/drupal8/BridgeDrupal8.php b/plugins/drupal8/BridgeDrupal8.php
new file mode 100644
index 0000000..0be6879
--- /dev/null
+++ b/plugins/drupal8/BridgeDrupal8.php
@@ -0,0 +1,23 @@
+<?php
+
+class BridgeDrupal8 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;
+ }
+}