Browse Source

Merge branch 'main' of https://github.com/IGSD-UoW/WPD-MobileApp into main

master
analuizaff 3 years ago
parent
commit
9687cb4905
  1. 7
      src/app/api/auth.js

7
src/app/api/auth.js

@ -1,3 +1,4 @@
import { create } from "apisauce";
import authClient from "../auth/authClient"; import authClient from "../auth/authClient";
function login(name, password) { function login(name, password) {
@ -34,9 +35,9 @@ function signup({
roles: ["ROLE_CLIENT"], roles: ["ROLE_CLIENT"],
}; };
Object.entries(body).forEach(([key, value]) => {
value == "" && delete body[key];
});
// Object.entries(body).forEach(([key, value]) => {
// value == "" && delete body[key];
// });
return authClient.post(`/signup`, body); return authClient.post(`/signup`, body);
} }

Loading…
Cancel
Save