blob: a159523f9acd3e9421d7178043d3bf0433ad8547 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
/**
* Implements EjabberdAuthBridge.
*/
class BridgeWordpress extends EjabberdAuthBridge {
function isuser($username, $server) {
return get_user_by('login', $username) != FALSE;
}
function auth($username, $server, $password) {
return wp_authenticate_username_password(NULL, $username, $password) instanceof WP_User;
}
}
|