Basic provisioning api
Includes: login, logout, and ping.
This commit is contained in:
@@ -30,6 +30,7 @@ type Bridge struct {
|
||||
eventProcessor *appservice.EventProcessor
|
||||
matrixHandler *matrixHandler
|
||||
bot *appservice.IntentAPI
|
||||
provisioning *ProvisioningAPI
|
||||
|
||||
usersByMXID map[id.UserID]*User
|
||||
usersByID map[string]*User
|
||||
@@ -101,6 +102,10 @@ func New(cfg *config.Config) (*Bridge, error) {
|
||||
StateStore: stateStore,
|
||||
}
|
||||
|
||||
if cfg.Appservice.Provisioning.Enabled() {
|
||||
bridge.provisioning = newProvisioningAPI(bridge)
|
||||
}
|
||||
|
||||
// Setup the event processors
|
||||
bridge.setupEvents()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user