fix(site): changing password no longer silently trims space chars in a password (#5640)
This commit is contained in:
1 parent
56a69b7eea
commit
efee03fdec
1 file changed
+1
-4
@@ -2,7 +2,7 @@ import TextField from "@material-ui/core/TextField"
|
||||
import { FormikContextType, FormikTouched, useFormik } from "formik"
|
||||
import React from "react"
|
||||
import * as Yup from "yup"
|
||||
import { getFormHelpers, onChangeTrimmed } from "../../util/formUtils"
|
||||
import { getFormHelpers } from "../../util/formUtils"
|
||||
import { LoadingButton } from "../LoadingButton/LoadingButton"
|
||||
import { Stack } from "../Stack/Stack"
|
||||
import { AlertBanner } from "components/AlertBanner/AlertBanner"
|
||||
@@ -77,7 +77,6 @@ export const SecurityForm: React.FC<SecurityFormProps> = ({
|
||||
)}
|
||||
<TextField
|
||||
{...getFieldHelpers("old_password")}
|
||||
onChange={onChangeTrimmed(form)}
|
||||
autoComplete="old_password"
|
||||
fullWidth
|
||||
label={Language.oldPasswordLabel}
|
||||
@@ -86,7 +85,6 @@ export const SecurityForm: React.FC<SecurityFormProps> = ({
|
||||
/>
|
||||
<TextField
|
||||
{...getFieldHelpers("password")}
|
||||
onChange={onChangeTrimmed(form)}
|
||||
autoComplete="password"
|
||||
fullWidth
|
||||
label={Language.newPasswordLabel}
|
||||
@@ -95,7 +93,6 @@ export const SecurityForm: React.FC<SecurityFormProps> = ({
|
||||
/>
|
||||
<TextField
|
||||
{...getFieldHelpers("confirm_password")}
|
||||
onChange={onChangeTrimmed(form)}
|
||||
autoComplete="confirm_password"
|
||||
fullWidth
|
||||
label={Language.confirmPasswordLabel}
|
||||
|
||||
Reference in new issue
Block a user