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
|
|
|
|
|
{
|
2025-01-17 23:37:54 +00:00
|
|
|
public firstName: string;
|
|
|
|
|
public lastName: string;
|
|
|
|
|
public password: string;
|
|
|
|
|
public start = 'last';
|
|
|
|
|
public url = 'https://login.agni.lindenlab.com/cgi-bin/login.cgi';
|
|
|
|
|
public token?: string;
|
|
|
|
|
public mfa_hash?: string;
|
|
|
|
|
public agreeToTOS?: true;
|
|
|
|
|
public readCritical?: true;
|
2021-12-09 18:57:38 +00:00
|
|
|
|
2025-01-17 23:37:54 +00:00
|
|
|
public passwordPrehashed = false;
|
2021-12-09 18:57:38 +00:00
|
|
|
|
2025-01-17 23:37:54 +00:00
|
|
|
public getHashedPassword(): string
|
2021-12-09 18:57:38 +00:00
|
|
|
{
|
|
|
|
|
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
|
|
|
}
|