1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

linty lint lint

This commit is contained in:
David Baker
2016-07-08 17:35:37 +01:00
parent 425039c5b5
commit 7dbc03942a

View File

@@ -2808,7 +2808,8 @@ MatrixClient.prototype.register = function(username, password,
MatrixClient.prototype.requestRegisterEmailToken = function(email, clientSecret,
sendAttempt, nextLink, callback) {
return this._requestTokenFromEndpoint(
"/register/email/requestToken", email, clientSecret, sendAttempt, nextLink, callback
"/register/email/requestToken",
email, clientSecret, sendAttempt, nextLink, callback
);
};
@@ -2825,12 +2826,18 @@ MatrixClient.prototype.requestRegisterEmailToken = function(email, clientSecret,
* requestEmailToken calls the equivalent API directly on the ID server,
* therefore bypassing the email addition specific logic.
*
* Parameters and return value are as for requestEmailToken
* @param {string} email As requestEmailToken
* @param {string} clientSecret As requestEmailToken
* @param {number} sendAttempt As requestEmailToken
* @param {string} nextLink As requestEmailToken
* @param {module:client.callback} callback Optional. As requestEmailToken
* @return {module:client.Promise} Resolves: As requestEmailToken
*/
MatrixClient.prototype.request3pidAddEmailToken = function(email, clientSecret,
sendAttempt, nextLink, callback) {
return this._requestTokenFromEndpoint(
"/account/3pid/email/requestToken", email, clientSecret, sendAttempt, nextLink, callback
"/account/3pid/email/requestToken",
email, clientSecret, sendAttempt, nextLink, callback
);
};
@@ -2846,18 +2853,32 @@ MatrixClient.prototype.request3pidAddEmailToken = function(email, clientSecret,
* requestEmailToken calls the equivalent API directly on the ID server,
* therefore bypassing the password reset specific logic.
*
* Parameters and return value are as for requestEmailToken
* @param {string} email As requestEmailToken
* @param {string} clientSecret As requestEmailToken
* @param {number} sendAttempt As requestEmailToken
* @param {string} nextLink As requestEmailToken
* @param {module:client.callback} callback Optional. As requestEmailToken
* @return {module:client.Promise} Resolves: As requestEmailToken
*/
MatrixClient.prototype.requestPasswordEmailToken = function(email, clientSecret,
sendAttempt, nextLink, callback) {
return this._requestTokenFromEndpoint(
"/account/password/email/requestToken", email, clientSecret, sendAttempt, nextLink, callback
"/account/password/email/requestToken",
email, clientSecret, sendAttempt, nextLink, callback
);
};
/**
* Internal utility function for requesting validation tokens from usage-specific
* requestToken endpoints.
*
* @param {string} endpoint The endpoint to send the request to
* @param {string} email As requestEmailToken
* @param {string} clientSecret As requestEmailToken
* @param {number} sendAttempt As requestEmailToken
* @param {string} nextLink As requestEmailToken
* @param {module:client.callback} callback Optional. As requestEmailToken
* @return {module:client.Promise} Resolves: As requestEmailToken
*/
MatrixClient.prototype._requestTokenFromEndpoint = function(endpoint,
email, clientSecret,