Skip to content

Commit

Permalink
Merge pull request #19 from fga-eps-mds/fix#115/rm-vis-dados
Browse files Browse the repository at this point in the history
[FIX] Remoção de dados visíveis (fga-eps-mds/2024.2-ARANDU-DOC#115)
  • Loading branch information
gabrielm2q authored Jan 19, 2025
2 parents 4f16f6b + cef4605 commit 64881cb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/services/user.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { userApi } from '@/services/apis.service';

export const createUser = async (data: any) => {
console.log(data);
try {
const response = await userApi.post('users', data);
return {
Expand All @@ -21,7 +20,6 @@ export const loginWithEmailAndPassword = async (
password: string,
) => {
try {
console.log(`Login email: ${email}, password: ${password}`);
const response = await userApi.post('auth/login', { email, password });
return response;
} catch (error) {
Expand Down Expand Up @@ -50,7 +48,6 @@ export const getUsers = async (token: string) => {
Authorization: `Bearer ${token}`,
},
});
console.log('Users:', response.data);
return response.data;
} catch (error) {
console.error('Failed to fetch users:', error);
Expand Down Expand Up @@ -83,7 +80,6 @@ export const updateUserRole = async (
};

export const forgotPassword = async (data: any) => {
console.log('forgot data', data);
try {
const response = await userApi.post('/auth/forgot-password', data);
return response.data;
Expand All @@ -93,7 +89,6 @@ export const forgotPassword = async (data: any) => {
};

export const resetPassword = async (data: any) => {
console.log('reset data', data);
try {
const response = await userApi.put('/auth/reset-password', data);
return response.data;
Expand Down

0 comments on commit 64881cb

Please sign in to comment.