Skip to content

Commit

Permalink
fix: corrected boolean results;
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoonrod committed Apr 4, 2024
1 parent bf9e369 commit aacf626
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,10 +896,16 @@ export class User implements IUser
verifyCode: result["verifyCode"],
registeredDate: result["registeredDate"],
loginDate: result["loginDate"],
enabled: result["enabled"],
verified: result["verified"]
enabled: true,
verified: true
});

if (result["enabled"] === 0)
user.enabled = false;

if (result["verified"] === 0)
user.verified = false;

// Only get the password/verify code if explicitly told to do so.
if (getPassword === false)
{
Expand Down

0 comments on commit aacf626

Please sign in to comment.