diff --git a/src/components/Login.tsx b/src/components/Login.tsx index 14b0a4b11..4ecae93fd 100644 --- a/src/components/Login.tsx +++ b/src/components/Login.tsx @@ -8,6 +8,7 @@ import FormPaperTitle from './Form/FormPaper/Title'; import FormPaperFooter from './Form/FormPaper/Footer'; import LinkButton from './pages/gallery/LinkButton'; import SingleInputForm, { SingleInputFormProps } from './SingleInputForm'; +import { Input } from '@mui/material'; interface LoginProps { signUp: () => void; @@ -48,6 +49,8 @@ export default function Login(props: LoginProps) { fieldType="email" placeholder={constants.ENTER_EMAIL} buttonText={constants.LOGIN} + autoComplete="username" + hiddenPostInput={} /> diff --git a/src/components/SetPasswordForm.tsx b/src/components/SetPasswordForm.tsx index 1bfb9a37f..3922d3b44 100644 --- a/src/components/SetPasswordForm.tsx +++ b/src/components/SetPasswordForm.tsx @@ -3,9 +3,10 @@ import constants from 'utils/strings/constants'; import { Formik } from 'formik'; import * as Yup from 'yup'; import SubmitButton from './SubmitButton'; -import { Box, TextField, Typography } from '@mui/material'; +import { Box, Input, TextField, Typography } from '@mui/material'; export interface SetPasswordFormProps { + userEmail: string; callback: ( passphrase: string, setFieldError: ( @@ -65,9 +66,19 @@ function SetPasswordForm(props: SetPasswordFormProps) { {constants.ENTER_ENC_PASSPHRASE} + void; disableAutoFocus?: boolean; + hiddenPreInput?: any; + hiddenPostInput?: any; + autoComplete?: string; } export default function SingleInputForm(props: SingleInputFormProps) { @@ -81,10 +84,13 @@ export default function SingleInputForm(props: SingleInputFormProps) { validateOnBlur={false}> {({ values, errors, handleChange, handleSubmit }) => (
+ {props.hiddenPreInput} + {props.hiddenPostInput} {props.secondaryButtonAction && (