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

26 lines
573 B
TypeScript
Raw Normal View History

import { Utils } from './Utils';
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$' + Utils.MD5String(this.password.substring(0, 16));
}
}