You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-27 04:21:52 +03:00
creator instead of factory, as it does registration and authentication
This commit is contained in:
6
start.js
6
start.js
@ -17,7 +17,7 @@ limitations under the License.
|
||||
const assert = require('assert');
|
||||
const RiotSession = require('./src/session');
|
||||
const scenario = require('./src/scenario');
|
||||
const RestSessionFactory = require('./src/rest/factory');
|
||||
const RestSessionCreator = require('./src/rest/creator');
|
||||
|
||||
const program = require('commander');
|
||||
program
|
||||
@ -41,14 +41,14 @@ async function runTests() {
|
||||
options.executablePath = path;
|
||||
}
|
||||
|
||||
const restFactory = new RestSessionFactory(
|
||||
const restCreator = new RestSessionCreator(
|
||||
'synapse/installations/consent',
|
||||
'http://localhost:5005',
|
||||
__dirname
|
||||
);
|
||||
|
||||
function createRestSession(username, password) {
|
||||
return restFactory.createSession(username, password);
|
||||
return restCreator.createSession(username, password);
|
||||
}
|
||||
|
||||
async function createSession(username) {
|
||||
|
Reference in New Issue
Block a user