Skip to content

Commit

Permalink
fixing backend
Browse files Browse the repository at this point in the history
  • Loading branch information
poloblue1357 committed Feb 28, 2024
1 parent 5b51d8e commit 74ab0d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/frontend/src/app/api-client/apiModules/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export const loginEmailAndPassword = async (data: any) => {
return userData.data
}

// export const passwordReset = (email) => auth.sendPasswordResetEmail(email)

export const signUpUser = async (data: any) => {
const userData = await apiClientWithAuth.post(apiEndpoints.users + "/signup", data)
// console.log(userData)
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/src/app/views/login/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable @typescript-eslint/no-explicit-any */
import React, { ChangeEvent, useEffect } from 'react';
import React, { ChangeEvent, useEffect, useContext } from 'react';
import { UserContext } from '../../app';
import { useGoogleLogin } from '@react-oauth/google';
import axios from 'axios';
Expand Down Expand Up @@ -90,7 +90,7 @@ export const Login = () => {
const loginEP = async () => {
const response = await loginEmailAndPassword({email, password})
console.log(response)

}
// const signUp = async () => {
// const response = await signUpUser({email, password, firstName, lastName, username})
Expand Down

0 comments on commit 74ab0d0

Please sign in to comment.