Browse Source

Add missing import in auth.js

master
GabrielTrettel 3 years ago
parent
commit
cab9d6c0a9
  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";
function login(name, password) {
@ -34,9 +35,9 @@ function signup({
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);
}

Loading…
Cancel
Save