16 lines
379 B
JavaScript
16 lines
379 B
JavaScript
|
|
const SyncConnector = require('./sync-connector');
|
|
|
|
class SyncSip extends SyncConnector {
|
|
async sync(info, userName, password) {
|
|
if (!info.hasAccount || !password) return;
|
|
|
|
await this.$.Account.rawSql('CALL pbx.sip_setPassword(?, ?)',
|
|
[info.user.id, password]
|
|
);
|
|
}
|
|
}
|
|
|
|
SyncConnector.connectors.push(SyncSip);
|
|
module.exports = SyncSip;
|