Skip to content

Commit

Permalink
improve: 改进 u2f mfa 自动填充
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmx233 committed Oct 30, 2023
1 parent 6d829c6 commit 28c971f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/src/components/user/U2fDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ const U2fDialog: FC = () => {
<TextField
variant={"outlined"}
label={"校验码"}
name={"twofactor_token"}
value={mfaCode}
onChange={(e) => {
if (!isNaN(Number(e.target.value))) setMfaCode(e.target.value);
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/User/pages/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const Profile: FC = () => {
{u2fMethods.map((m) => (
<Tooltip
title={!(u2fStatus as any)[m.value] ? "未启用" : undefined}
placement={"top-start"}
placement={"top"}
arrow
>
<FormControlLabel
Expand Down

0 comments on commit 28c971f

Please sign in to comment.