Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication: Registration #6

Merged
merged 33 commits into from
Jul 3, 2024
Merged

Authentication: Registration #6

merged 33 commits into from
Jul 3, 2024

Conversation

PizieDust
Copy link
Collaborator

@PizieDust PizieDust commented Jul 2, 2024

Creating users

This PR will focus on authentication. Minor changes are included such as CSS styling.

Frontend:

  • Sign up page

Endpoints:

  • GET: Sign up/sign-up
  • POST: Sign up /api/register

Backend:

  • Encrypt passwords
  • Create uuid
  • Generate token
  • Create user account

@PizieDust PizieDust self-assigned this Jul 2, 2024
@PizieDust PizieDust requested review from hannesm, dinosaure and reynir July 2, 2024 17:51
@hannesm
Copy link
Contributor

hannesm commented Jul 2, 2024

to me this looks fine so far :) thanks a lot

@hannesm
Copy link
Contributor

hannesm commented Jul 3, 2024

I merged #7 and that resulted in conflicts here. Sorry about that. But I just reverted the formatting change - we can merge this and thereafter apply the ocamlformat. :)

@PizieDust PizieDust changed the title Authentication Authentication: Registration Jul 3, 2024
@hannesm hannesm marked this pull request as ready for review July 3, 2024 09:26
PizieDust and others added 2 commits July 3, 2024 10:52
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
PizieDust and others added 2 commits July 3, 2024 10:52
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
PizieDust and others added 5 commits July 3, 2024 10:53
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
@PizieDust PizieDust requested a review from hannesm July 3, 2024 10:54
let token = generate_uuid () in
{ token_type = "Bearer"; access_token = Uuidm.to_string token; expires_in }

let create_user ~name ~email ~password =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess here a validation should take place, so that name and email are valid. this would then also mean that we don't need the clean_string.

having said this, we can do it in a later PR. :)

PizieDust and others added 4 commits July 3, 2024 11:59
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
@hannesm hannesm merged commit 5eff321 into main Jul 3, 2024
0 of 2 checks passed
@hannesm hannesm deleted the pixie_dev branch July 3, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants