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