восстановление пароля теперь имеет визуальную защиту
This commit is contained in:
parent
174abfafbe
commit
4542ebbb6f
@ -22,6 +22,7 @@ import { makeRequest } from "@frontend/kitui";
|
|||||||
import { setAuthToken } from "@frontend/kitui";
|
import { setAuthToken } from "@frontend/kitui";
|
||||||
import { parseAxiosError } from "@utils/parse-error";
|
import { parseAxiosError } from "@utils/parse-error";
|
||||||
import { recoverUser } from "@api/user";
|
import { recoverUser } from "@api/user";
|
||||||
|
import PasswordInput from "@/ui_kit/passwordInput";
|
||||||
interface Values {
|
interface Values {
|
||||||
password: string;
|
password: string;
|
||||||
}
|
}
|
||||||
@ -160,13 +161,15 @@ export default function RecoverPassword() {
|
|||||||
>
|
>
|
||||||
Введите новый пароль
|
Введите новый пароль
|
||||||
</Typography>
|
</Typography>
|
||||||
<InputTextfield
|
<PasswordInput
|
||||||
TextfieldProps={{
|
TextfieldProps={{
|
||||||
value: formik.values.password,
|
value: formik.values.password,
|
||||||
placeholder: "введите пароль",
|
placeholder: "Не менее 8 символов",
|
||||||
onBlur: formik.handleBlur,
|
onBlur: formik.handleBlur,
|
||||||
error: formik.touched.password && Boolean(formik.errors.password),
|
error: formik.touched.password && Boolean(formik.errors.password),
|
||||||
helperText: formik.touched.password && formik.errors.password,
|
helperText: formik.touched.password && formik.errors.password,
|
||||||
|
type: "password",
|
||||||
|
"data-cy": "password",
|
||||||
}}
|
}}
|
||||||
onChange={formik.handleChange}
|
onChange={formik.handleChange}
|
||||||
color="#F2F3F7"
|
color="#F2F3F7"
|
||||||
|
Loading…
Reference in New Issue
Block a user