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