You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-09-03 08:42:03 +03:00
lint
This commit is contained in:
@@ -935,13 +935,13 @@ MatrixClient.prototype.login = function(loginType, data, callback) {
|
|||||||
MatrixClient.prototype.register = function(username, password,
|
MatrixClient.prototype.register = function(username, password,
|
||||||
session_id, auth, callback) {
|
session_id, auth, callback) {
|
||||||
if (auth === undefined) { auth = {}; }
|
if (auth === undefined) { auth = {}; }
|
||||||
if (session_id) auth.session = session_id;
|
if (session_id) { auth.session = session_id; }
|
||||||
|
|
||||||
var params = {
|
var params = {
|
||||||
auth: auth
|
auth: auth
|
||||||
};
|
};
|
||||||
if (username !== undefined) params.username = username;
|
if (username !== undefined) { params.username = username; }
|
||||||
if (password !== undefined ) params.password = password;
|
if (password !== undefined) { params.password = password; }
|
||||||
|
|
||||||
return this._http.requestWithPrefix(
|
return this._http.requestWithPrefix(
|
||||||
callback, "POST", "/register", undefined,
|
callback, "POST", "/register", undefined,
|
||||||
|
Reference in New Issue
Block a user