mochan42 / ft_transcendence

3 stars 2 forks source link

Check if User already exists in DB #35

Open pmeising opened 1 year ago

pmeising commented 1 year ago

I have added about 10 users with the Post request to the backend trying stuff out. What I didn't realize was that a new user is created every time I make a Post request there.

Can we implement a check if the username already exists and if so, don't add a new user with new ID, but simply update the content if valid? Thanks!

facinetm14 commented 1 year ago

Sure, will do this.