Register API and form optimization [depend: backend /register] #93
Labels
No Label
Bug
Done
Pas urgent
Proposition
Question
TODO
Tests
URGENT BORDEL DE Q
Waiting for review
back
front
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PGL/Clyde#93
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "tonitch/front/register"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Made the register api following the backend
refactored the register form for more ergonomy
PS: Waiting for the backend to catch up
Register API and form optimizationto Register API and form optimization [depend: backend /register](FAUX)
@ -9,0 +18,4 @@
* - country
* - cursus
*/
export async function register(firstname, lastname, birthDate, password, email, address, country, cursus){
ProfilePictureUrl pas présent ?
car de mémoire tu postais l'image directe je te retournais l'URL comme ça tu la postais
c'est parce que j'avais fait ça avant qu'on parle des pp 👉👈
@Maxime Le problème c'est que si tu me retourne l'url tu vas pas pouvoir le lier à la db
faudrait du coup me retourner l'id que je te retourne. Ce qui n'est pas ouf non plus mais bon. en vrai autant ne pas trop se casser la tête
@ -9,0 +48,4 @@
* PS: the password is not is not required as it is generated by the backend and sent to the user
* by mail. it's up to the user to change it if he cares about security
*/
export async function createUser(firstname, lastname, birthDate, email, address, country, cursus, role){
pas necessairement de cursus, surtout dans le cadre où le secrétariat postent les teachers
(surtout que les users on pas de cursus)
@ -9,0 +49,4 @@
* by mail. it's up to the user to change it if he cares about security
*/
export async function createUser(firstname, lastname, birthDate, email, address, country, cursus, role){
return restPost("/user", {
same that
https://git.herisson.ovh/PGL/Clyde/pulls/93/files#issuecomment-1637
https://www.google.com/url?sa=i&url=https%3A%2F%2Fgithub.com%2Fshuuuuun%2Fsandbox%2Fissues%2F1&psig=AOvVaw1KKjIIdbBPyWqRArTCGj_s&ust=1710536670356000&source=images&cd=vfe&opi=89978449&ved=0CBMQjRxqFwoTCPj1qOfT9IQDFQAAAAAdAAAAABAI
f4e24fe6c7
toe6dd0a8995