Files
node-metaverse/lib/classes/LoginParameters.ts

26 lines
601 B
TypeScript
Raw Normal View History

import * as crypto from 'crypto';
export class LoginParameters
{
firstName: string;
lastName: string;
password: string;
start = 'last';
url = 'https://login.agni.lindenlab.com/cgi-bin/login.cgi';
2022-05-06 12:20:50 +01:00
token?: string;
mfa_hash?: string;
2022-11-01 17:03:48 -05:00
agreeToTOS?: true;
readCritical?: true;
passwordPrehashed = false;
getHashedPassword(): string
{
if (this.passwordPrehashed)
{
return this.password;
}
return '$1$' + crypto.createHash('md5').update(this.password.substr(0, 16)).digest('hex');
}
}