Skip to content

Commit

Permalink
Marked requestPasswordChangeEmail and changePassword as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed Aug 6, 2018
1 parent 5e604c8 commit 43bcc83
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -515,6 +515,8 @@ Gets your account's auth secret, which is the pre-shared key used for in-home st

**v3.13.0 or later is required to use this method**

**This no longer works and is deprecated. It will be removed entirely in a future release.**

Requests Steam to send you an email that contains a code you can supply to `changePassword` in order to change your
account's password. If you have a Mobile Authenticator enabled, this will return success but not actually do anything.
With 2FA, you should use a 2FA code instead of an email code.
Expand All @@ -528,6 +530,8 @@ With 2FA, you should use a 2FA code instead of an email code.

**v3.13.0 or later is required to use this method**

**This no longer works and is deprecated. It will be removed entirely in a future release.**

Changes your Steam account's password. This won't effect any trading restrictions.

### changeEmail(options[, callback])
Expand Down
19 changes: 19 additions & 0 deletions components/account.js
Expand Up @@ -4,6 +4,13 @@ var SteamID = require('steamid');
var ByteBuffer = require('bytebuffer');
var BinaryKVParser = require('binarykvparser');

/**
* @param {string} accountName
* @param {string} password
* @param {string} email
* @param {function} callback
* @deprecated No longer works
*/
SteamUser.prototype.createAccount = function(accountName, password, email, callback) {
throw new Error("Creating accounts through node-steam-user is no longer possible due to Steam changes.");
};
Expand Down Expand Up @@ -76,6 +83,11 @@ SteamUser.prototype.getAuthSecret = function(callback) {
});
};*/

/**
* @param {string} currentPassword
* @param {function} callback
* @deprecated No longer works
*/
SteamUser.prototype.requestPasswordChangeEmail = function(currentPassword, callback) {
var buf = new ByteBuffer(81 + 4); // a static 81 bytes for the password, and 4 for the int at the end
buf.writeCString(currentPassword);
Expand All @@ -94,6 +106,13 @@ SteamUser.prototype.requestPasswordChangeEmail = function(currentPassword, callb
});
};

/**
* @param {string} oldPassword
* @param {string} newPassword
* @param {string} code
* @param {function} callback
* @deprecated No longer works
*/
SteamUser.prototype.changePassword = function(oldPassword, newPassword, code, callback) {
var buf = new ByteBuffer(1 + oldPassword.length + 1 + newPassword.length + 1 + code.length + 1, ByteBuffer.LITTLE_ENDIAN);
buf.writeCString(""); // unknown
Expand Down

0 comments on commit 43bcc83

Please sign in to comment.