mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-05 02:31:12 +00:00
Fix name.
This commit is contained in:
parent
607139889b
commit
6843a3e6e8
2 changed files with 17 additions and 3 deletions
|
@ -13,7 +13,10 @@ import {
|
|||
export interface Login {
|
||||
username_or_email: string;
|
||||
password: string;
|
||||
totp_token?: string;
|
||||
/**
|
||||
* If your user has 2fa set up, they must provide the token, otherwise you will receive the error "missing_totp_token"
|
||||
*/
|
||||
totp_2fa_token?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -104,7 +107,15 @@ export interface SaveUserSettings {
|
|||
show_read_posts?: boolean;
|
||||
show_new_post_notifs?: boolean;
|
||||
discussion_languages?: number[];
|
||||
generate_totp?: boolean;
|
||||
/**
|
||||
* If this is set to true, lemmy will generate or regenerate a 2-factor (totp) authentication secret.
|
||||
* You can then use the `totp_2fa_url` from [[LocalUserSettings]] to set up your authenticator app.
|
||||
*
|
||||
* If this is set to false, it will remove 2-factor for your account.
|
||||
*
|
||||
* If this is undefined, it leaves your 2-factor setup as is.
|
||||
*/
|
||||
generate_totp_2fa?: boolean;
|
||||
auth: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,10 @@ export interface LocalUserSettings {
|
|||
show_new_post_notifs: boolean;
|
||||
email_verified: boolean;
|
||||
accepted_application: boolean;
|
||||
totp_url?: string;
|
||||
/**
|
||||
* An installation url for your 2-factor authenticator app.
|
||||
*/
|
||||
totp_2fa_url?: string;
|
||||
}
|
||||
|
||||
export interface PersonSafe {
|
||||
|
|
Loading…
Reference in a new issue