2023-11-29 16:01:50 +00:00
|
|
|
import { Utils } from './Utils';
|
2021-12-09 18:57:38 +00:00
|
|
|
|
2017-11-21 15:09:26 +00:00
|
|
|
export class LoginParameters
|
|
|
|
|
{
|
|
|
|
|
firstName: string;
|
|
|
|
|
lastName: string;
|
|
|
|
|
password: string;
|
|
|
|
|
start = 'last';
|
2020-01-07 21:01:20 +00:00
|
|
|
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;
|
2021-12-09 18:57:38 +00:00
|
|
|
|
|
|
|
|
passwordPrehashed = false;
|
|
|
|
|
|
|
|
|
|
getHashedPassword(): string
|
|
|
|
|
{
|
|
|
|
|
if (this.passwordPrehashed)
|
|
|
|
|
{
|
|
|
|
|
return this.password;
|
|
|
|
|
}
|
2023-11-29 16:01:50 +00:00
|
|
|
return '$1$' + Utils.MD5String(this.password.substring(0, 16));
|
2021-12-09 18:57:38 +00:00
|
|
|
}
|
2017-11-21 15:09:26 +00:00
|
|
|
}
|