From e158fa1f87929e643ec93f12c4ba9b4947f17bf1 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Tue, 5 Mar 2024 13:18:57 +0100 Subject: [PATCH] backbone for login --- frontend/src/rest/Users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/rest/Users.js b/frontend/src/rest/Users.js index b74c9b8..1bc2884 100644 --- a/frontend/src/rest/Users.js +++ b/frontend/src/rest/Users.js @@ -2,9 +2,9 @@ import { restGet, restPost } from './restConsumer.js' export async function login(user, pass, exp){ return restPost("/login", {login: user, password: pass, expiration: exp}); - //TODO: set token in cookies } export async function register(user, pass, mail){ return restPost("/user", {name: user, password: pass, mail: mail}); + restPost("/login", {login: user, password: pass, expiration: exp}) }