From 4684088095248d22ac9f1b3341289d1dfd1cb441 Mon Sep 17 00:00:00 2001 From: Kirill Stupakov Date: Wed, 24 Apr 2024 18:35:20 +0300 Subject: [PATCH] Fix password hashing --- web-app/client/src/components/LogInModal/steps/LogIn.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-app/client/src/components/LogInModal/steps/LogIn.tsx b/web-app/client/src/components/LogInModal/steps/LogIn.tsx index d128003be..d3e635ed2 100644 --- a/web-app/client/src/components/LogInModal/steps/LogIn.tsx +++ b/web-app/client/src/components/LogInModal/steps/LogIn.tsx @@ -11,6 +11,7 @@ import { } from '@graphql/operations/mutations/__generated__/logIn'; import { LOG_IN } from '@graphql/operations/mutations/logIn'; import { useAuthContext } from '@hooks/useAuthContext'; +import hashPassword from '@utils/hashPassword'; import styles from '../LogInModal.module.scss'; type Inputs = { @@ -45,7 +46,7 @@ const LogIn: FC = ({ onSuccess, onRecovery }) => { const response = await logIn({ variables: { email: values.email, - pwdHash: values.password, + pwdHash: hashPassword(values.password), }, });