From: Anon Date: Tue, 14 Mar 2023 17:59:21 +0000 (-0500) Subject: Merge branch 'main' into custom-emojis X-Git-Url: http://these/git/?a=commitdiff_plain;h=4b6851d246dd2c7cc173cda4d5813f0c64a0ea13;hp=96827a0dc94c1e209e31698bfd9c3ee0a426b6a1;p=lemmy-ui.git Merge branch 'main' into custom-emojis --- diff --git a/package.json b/package.json index 87f23d0..fba9403 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "inferno-server": "^8.0.6", "isomorphic-cookie": "^1.2.4", "jwt-decode": "^3.1.2", - "lemmy-js-client": "0.17.2-rc.1", + "lemmy-js-client": "0.17.2-rc.3", "markdown-it": "^13.0.1", "markdown-it-container": "^3.0.0", "markdown-it-emoji": "^2.0.2", diff --git a/src/shared/components/home/login.tsx b/src/shared/components/home/login.tsx index 7cdde92..dea6484 100644 --- a/src/shared/components/home/login.tsx +++ b/src/shared/components/home/login.tsx @@ -26,8 +26,10 @@ interface State { form: { username_or_email?: string; password?: string; + totp_2fa_token?: string; }; loginLoading: boolean; + showTotp: boolean; siteRes: GetSiteResponse; } @@ -38,6 +40,7 @@ export class Login extends Component { state: State = { form: {}, loginLoading: false, + showTotp: false, siteRes: this.isoData.site_res, }; @@ -141,6 +144,28 @@ export class Login extends Component { + {this.state.showTotp && ( +
+ +
+ +
+
+ )}
+ {this.totpSection()}