Skip to content

Commit

Permalink
Fix password hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-stupakov committed Apr 24, 2024
1 parent 4e1c5ac commit 4684088
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web-app/client/src/components/LogInModal/steps/LogIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -45,7 +46,7 @@ const LogIn: FC<Props> = ({ onSuccess, onRecovery }) => {
const response = await logIn({
variables: {
email: values.email,
pwdHash: values.password,
pwdHash: hashPassword(values.password),
},
});

Expand Down

0 comments on commit 4684088

Please sign in to comment.