Jump to content
McKay Development

Recommended Posts

Posted (edited)

It just isn't being sent. I even get a SteamGuard e-mail correctly sent beforehand, so I know that's working.

I've tried with multiple accounts.

 

 

var user = new SteamUser();
 
user.logOn({
  'accountName': <name>,
  'password': <password>
});
 
user.on('loggedOn', function() {
  console.log('Successfully logged in');
 
  user.on('emailInfo', function(addr, valid) {
    if (addr && valid) {
      console.log('Address: ' + addr);
 
      user.requestPasswordChangeEmail(<current password>, function(err) {
        if (err) {
          console.log(err);
        } else {
          console.log('Successfully sent e-mail')
        }
      });
    }
  });
});
 
> Successfully logged in
> Address: <e-mail>
> Successfully sent e-mail
 
I figured that e-mail info not being emitted yet could be the problem, but as you can see I tested that and it comes out fine.
 
The docs say that if there's a mobile authenticator, the function will return true but not do anything. But none of the accounts have a mobile authenticator.
 
I'm using 3.28.1, the latest version as of posting this.
 
I'm convinced there's just a bug. Am I wrong? er
Edited by Jack

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...