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; } }