summaryrefslogtreecommitdiff
path: root/plugins/drupal8/BridgeDrupal8.php
blob: eadbdaaa927c1017f34036ca23cc900df80064fe (plain)
1
2
3
4
5
6
7
8
9
10
11
<?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;
  }
}