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

Antti | kirjautuminen ja rekistöröityminen sekä authentication #23

Merged
merged 129 commits into from May 17, 2024

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    7defc17 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f028cfb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d680e1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7a987a7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ed507b4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    44da0e4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0e50733 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    43d3108 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7aa985d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    59b6a17 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7aadfbc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c0cb21a View commit details
    Browse the repository at this point in the history
  13. Created a new folder pages/api/auth and added register.ts file there …

    …to handle registering. Added some basic handler functions there
    anttiasmala committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    9d494c1 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4f580c3 View commit details
    Browse the repository at this point in the history
  15. Created a file for URLs to images that have been taken from internet …

    …so credits can be given easier
    anttiasmala committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    e7f4640 View commit details
    Browse the repository at this point in the history
  16. Created a custom header check so backend can call backend APIs withou…

    …t middleware interfering. Most likely will be replaced / deleted, but it works for now in development stage
    anttiasmala committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    de68abf View commit details
    Browse the repository at this point in the history
  17. Created a simple request for registering. Added default values for fi…

    …rst name etc to make development easier and faster
    anttiasmala committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    0787a77 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e61837f View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6f33e73 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    a73c274 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5eed346 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    21d9f98 View commit details
    Browse the repository at this point in the history
  23. ESLint fixes

    anttiasmala committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    6913f2e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    2b9c5fd View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    3a4ac71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6271496 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    15f0d57 View commit details
    Browse the repository at this point in the history
  4. Removed globalThis.crypto variable. Added DatabaseSessionAttributes t…

    …ype into Register interface
    anttiasmala committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    050eb73 View commit details
    Browse the repository at this point in the history
  5. Added a function to create a session when user registers and made it …

    …to be appended into header before returning data to the client user
    anttiasmala committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    e9f014f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    882ec6f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    add75ca View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c871d5b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    143e7ba View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5a8a25e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    76e6afb View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2024

  1. Configuration menu
    Copy the full SHA
    2fe00c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e742dfa View commit details
    Browse the repository at this point in the history
  3. Due to modification to isEmailValid etc functions had to change them …

    …to throw an error. Session will be created now if registering is ok
    anttiasmala committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    b12f3e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Configuration menu
    Copy the full SHA
    94ab476 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6c1ea14 View commit details
    Browse the repository at this point in the history
  3. Moved hashPassword from /api/users/index.ts to -> backend/utils.ts to…

    … make it 'global'. Probably will be changed in the future, but this for now"
    anttiasmala committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    61bf1d7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2d2950 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    39b279a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b2af52d View commit details
    Browse the repository at this point in the history
  7. ESLint fixes

    anttiasmala committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    430ceb8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ddef858 View commit details
    Browse the repository at this point in the history
  9. Removed couple values in .env.example. Not used right now. In /api/au…

    …th/register.ts -> Removed isValid functions. Replaced the user creation request with a function that creates an user. Removed unnecessary imports"
    anttiasmala committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    0195118 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f26dded View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5fae57c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    594dbf3 View commit details
    Browse the repository at this point in the history
  13. Made createUser function in backend exportable. Fixed the import in /…

    …api/auth/register.ts to be imported from backend instead of frontend
    anttiasmala committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    356244a View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b7d3469 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3d58c21 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    765d283 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    2ab6d2a View commit details
    Browse the repository at this point in the history
  18. handleError file's handleUserError now returns a string. Added a new …

    …useState to /pages/register.tsx to show if error occured during registering
    anttiasmala committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    e19df78 View commit details
    Browse the repository at this point in the history
  19. Added eye_open.svg and eye_slash.svg. Converted them to .tsx files by…

    … running 'npm run svgr' command. icons/index.ts might get deleted in the future but I will let it be there for now
    anttiasmala committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    bf30cfd View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Added eye icon behind password which will show the password. Added fu…

    …nctionality to show the password
    anttiasmala committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    7a7000d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6613eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    755d369 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d68195e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    734fa10 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a91e5ff View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cb7b3e4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    91d633c View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Configuration menu
    Copy the full SHA
    50a4100 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b051aa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8ef5d4 View commit details
    Browse the repository at this point in the history
  4. Created a logout function

    anttiasmala committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    8cbdff2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2500743 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8cd8c4f View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Configuration menu
    Copy the full SHA
    fad4a56 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5445dc View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2024

  1. Configuration menu
    Copy the full SHA
    5ddda6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5467447 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be218f1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8561fc7 View commit details
    Browse the repository at this point in the history
  5. Created a new file isValidFunctions.ts to shared folder to be able to…

    … use both in front- and backend. Fixed the imports as well
    anttiasmala committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    8075932 View commit details
    Browse the repository at this point in the history
  6. Created useState to determite if the user details should be shown. Ad…

    …ded some functionality to it
    anttiasmala committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    1eb0088 View commit details
    Browse the repository at this point in the history
  7. Moved error text block a bit more up so it will not resize the whole …

    …form. Added a check for email if it is valild to avoid possible unnecessary requests
    anttiasmala committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    c9d21be View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    70901ba View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    74a2953 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    908f6d4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1530a3a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7de5002 View commit details
    Browse the repository at this point in the history
  13. Created a new function luciaLongSession and changed default lucia to …

    …luciaShortSession. Created a variable value for lucia to see if the lucia should be short or long sessioned. This should be fine due to it not being global variable
    anttiasmala committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    b3e9573 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    f9f28c7 View commit details
    Browse the repository at this point in the history
  2. Added frontend styling

    anttiasmala committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    23a46da View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b285acf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4c9563d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ae6f4b9 View commit details
    Browse the repository at this point in the history
  6. Added hoverOnlyWhenSupported to be true to make hover elements work a…

    …s intended when using mobile
    anttiasmala committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    c0876b1 View commit details
    Browse the repository at this point in the history
  7. Added some functionality to classname rendering. Created a new parame…

    …ter to UserDetailsModal component that will close the modal. Added a full page sized div-wrapper to get clicks that are not inside the modal or is not the user icon
    anttiasmala committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    412c37f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    99b8d7d View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    513cb3a View commit details
    Browse the repository at this point in the history
  2. ESLint fixes

    anttiasmala committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    5bce277 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60688a6 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2024

  1. Configuration menu
    Copy the full SHA
    0c44e77 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. Configuration menu
    Copy the full SHA
    abcb4a6 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Moved handleLogout function from Home function to UserDetailModal fun…

    …ction. Changed router.push to window.location.href
    anttiasmala committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    c1678cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00b11da View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    300226e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    994ca51 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5d5d95e View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. Configuration menu
    Copy the full SHA
    a1c770b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7861a1 View commit details
    Browse the repository at this point in the history
  3. Debugging

    anttiasmala committed May 1, 2024
    Configuration menu
    Copy the full SHA
    1d87410 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. Added export types

    anttiasmala committed May 6, 2024
    Configuration menu
    Copy the full SHA
    c74d47a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0766e18 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d5a4543 View commit details
    Browse the repository at this point in the history
  4. Added a new variable SvgEye to determine which SVG icon will be shown…

    …. Added this both in pages/register.tsx and pages/login.tsx
    anttiasmala committed May 6, 2024
    Configuration menu
    Copy the full SHA
    7d85f3f View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Configuration menu
    Copy the full SHA
    58133a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d8e4758 View commit details
    Browse the repository at this point in the history
  3. Made code easier to read

    anttiasmala committed May 10, 2024
    Configuration menu
    Copy the full SHA
    2bf0766 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    318e45c View commit details
    Browse the repository at this point in the history
  5. ESLint fixes

    anttiasmala committed May 10, 2024
    Configuration menu
    Copy the full SHA
    1c4c157 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    22ac78b View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Added a check to only return the gifts the requester has an access to…

    …. Added a new parameter userData that contains requester's data (id, uuid, etc...)
    anttiasmala committed May 13, 2024
    Configuration menu
    Copy the full SHA
    508d84a View commit details
    Browse the repository at this point in the history
  2. Added a check to only return the gifts, allow updating the gift and d…

    …eleting the gift that the requester has an access to. Changed queryUUID to giftUUID and added userData parameter to get user's id and uuid and so on
    anttiasmala committed May 13, 2024
    Configuration menu
    Copy the full SHA
    9c973ac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    efc9171 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Configuration menu
    Copy the full SHA
    1f6afac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db064d0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ef0882f View commit details
    Browse the repository at this point in the history
  4. Changed variable userCreationRequest to be userData. Replaced the con…

    …nect method while creating a session
    anttiasmala committed May 15, 2024
    Configuration menu
    Copy the full SHA
    724178a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7e9373b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    135dfe5 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. Configuration menu
    Copy the full SHA
    7e4a63a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb966a5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    57a8e30 View commit details
    Browse the repository at this point in the history