Fix name.

This commit is contained in:
Dessalines 2023-02-26 09:41:22 -05:00
parent 607139889b
commit 6843a3e6e8
2 changed files with 17 additions and 3 deletions

View file

@ -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;
}

View file

@ -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 {