backbone for login
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 1m58s
Build and test backend / Test-backend (pull_request) Successful in 1m52s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 32s

This commit is contained in:
Debucquoy Anthony 2024-03-05 13:18:57 +01:00
parent 6289be529a
commit e158fa1f87
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -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})
}