1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-18 05:42:00 +03:00
This commit is contained in:
David Baker
2015-07-16 10:20:31 +01:00
parent ff1b137750
commit 7b26a64617

View File

@@ -926,16 +926,16 @@ MatrixClient.prototype.login = function(loginType, data, callback) {
/**
* @param {string} username
* @param {string} password
* @param {string} session_id
* @param {string} sessionId
* @param {Object} auth
* @param {module:client.callback} callback Optional.
* @return {module:client.Promise} Resolves: TODO
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixClient.prototype.register = function(username, password,
session_id, auth, callback) {
sessionId, auth, callback) {
if (auth === undefined) { auth = {}; }
if (session_id) { auth.session = session_id; }
if (sessionId) { auth.session = sessionId; }
var params = {
auth: auth
@@ -1390,20 +1390,20 @@ function _PojoToMatrixEventMapper(plainOldJsObject) {
/**
* @param {string} email
* @param {string} client_secret
* @param {string} send_attempt
* @param {string} next_link Optional
* @param {string} clientSecret
* @param {string} sendAttempt
* @param {string} nextLink Optional
* @param {module:client.callback} callback Optional.
* @return {module:client.Promise} Resolves: TODO
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixClient.prototype.requestEmailToken = function(email, client_secret,
send_attempt, next_link, callback) {
MatrixClient.prototype.requestEmailToken = function(email, clientSecret,
sendAttempt, nextLink, callback) {
var params = {
client_secret: client_secret,
client_secret: clientSecret,
email: email,
send_attempt: send_attempt,
next_link: next_link
send_attempt: sendAttempt,
next_link: nextLink
};
return this._http.idServerRequest(
callback, "POST", "/validate/email/requestToken",