-
Notifications
You must be signed in to change notification settings - Fork 1
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
Commits on Apr 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7defc17 - Browse repository at this point
Copy the full SHA 7defc17View commit details -
Configuration menu - View commit details
-
Copy full SHA for f028cfb - Browse repository at this point
Copy the full SHA f028cfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d680e1 - Browse repository at this point
Copy the full SHA 3d680e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a987a7 - Browse repository at this point
Copy the full SHA 7a987a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed507b4 - Browse repository at this point
Copy the full SHA ed507b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44da0e4 - Browse repository at this point
Copy the full SHA 44da0e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e50733 - Browse repository at this point
Copy the full SHA 0e50733View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43d3108 - Browse repository at this point
Copy the full SHA 43d3108View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aa985d - Browse repository at this point
Copy the full SHA 7aa985dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59b6a17 - Browse repository at this point
Copy the full SHA 59b6a17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aadfbc - Browse repository at this point
Copy the full SHA 7aadfbcView commit details -
Copied an example of auth from lucia-auth's website: References: http…
Configuration menu - View commit details
-
Copy full SHA for c0cb21a - Browse repository at this point
Copy the full SHA c0cb21aView commit details -
Created a new folder pages/api/auth and added register.ts file there …
…to handle registering. Added some basic handler functions there
Configuration menu - View commit details
-
Copy full SHA for 9d494c1 - Browse repository at this point
Copy the full SHA 9d494c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f580c3 - Browse repository at this point
Copy the full SHA 4f580c3View commit details -
Created a file for URLs to images that have been taken from internet …
…so credits can be given easier
Configuration menu - View commit details
-
Copy full SHA for e7f4640 - Browse repository at this point
Copy the full SHA e7f4640View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for de68abf - Browse repository at this point
Copy the full SHA de68abfView commit details -
Created a simple request for registering. Added default values for fi…
…rst name etc to make development easier and faster
Configuration menu - View commit details
-
Copy full SHA for 0787a77 - Browse repository at this point
Copy the full SHA 0787a77View commit details -
Configuration menu - View commit details
-
Copy full SHA for e61837f - Browse repository at this point
Copy the full SHA e61837fView commit details -
Made the CUSTOM_HEADER variable exportable so it does not need to be …
…written multiple times
Configuration menu - View commit details
-
Copy full SHA for 6f33e73 - Browse repository at this point
Copy the full SHA 6f33e73View commit details -
Configuration menu - View commit details
-
Copy full SHA for a73c274 - Browse repository at this point
Copy the full SHA a73c274View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eed346 - Browse repository at this point
Copy the full SHA 5eed346View commit details -
Added functions for checking that given values are valid. Added reque…
…st for user creation
Configuration menu - View commit details
-
Copy full SHA for 21d9f98 - Browse repository at this point
Copy the full SHA 21d9f98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6913f2e - Browse repository at this point
Copy the full SHA 6913f2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b9c5fd - Browse repository at this point
Copy the full SHA 2b9c5fdView commit details
Commits on Apr 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3a4ac71 - Browse repository at this point
Copy the full SHA 3a4ac71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6271496 - Browse repository at this point
Copy the full SHA 6271496View commit details -
Changed sessionId to id, added userId, createdAt and updatedAt. Made …
…user relation optional
Configuration menu - View commit details
-
Copy full SHA for 15f0d57 - Browse repository at this point
Copy the full SHA 15f0d57View commit details -
Removed globalThis.crypto variable. Added DatabaseSessionAttributes t…
…ype into Register interface
Configuration menu - View commit details
-
Copy full SHA for 050eb73 - Browse repository at this point
Copy the full SHA 050eb73View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e9f014f - Browse repository at this point
Copy the full SHA e9f014fView commit details -
Created a new file utils.ts to backend to have all isEmailValid etc f…
…unctions in one place
Configuration menu - View commit details
-
Copy full SHA for 882ec6f - Browse repository at this point
Copy the full SHA 882ec6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for add75ca - Browse repository at this point
Copy the full SHA add75caView commit details -
Configuration menu - View commit details
-
Copy full SHA for c871d5b - Browse repository at this point
Copy the full SHA c871d5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 143e7ba - Browse repository at this point
Copy the full SHA 143e7baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a8a25e - Browse repository at this point
Copy the full SHA 5a8a25eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76e6afb - Browse repository at this point
Copy the full SHA 76e6afbView commit details
Commits on Apr 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2fe00c4 - Browse repository at this point
Copy the full SHA 2fe00c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e742dfa - Browse repository at this point
Copy the full SHA e742dfaView commit details -
Due to modification to isEmailValid etc functions had to change them …
…to throw an error. Session will be created now if registering is ok
Configuration menu - View commit details
-
Copy full SHA for b12f3e9 - Browse repository at this point
Copy the full SHA b12f3e9View commit details
Commits on Apr 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 94ab476 - Browse repository at this point
Copy the full SHA 94ab476View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c1ea14 - Browse repository at this point
Copy the full SHA 6c1ea14View commit details -
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"
Configuration menu - View commit details
-
Copy full SHA for 61bf1d7 - Browse repository at this point
Copy the full SHA 61bf1d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2d2950 - Browse repository at this point
Copy the full SHA b2d2950View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39b279a - Browse repository at this point
Copy the full SHA 39b279aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2af52d - Browse repository at this point
Copy the full SHA b2af52dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 430ceb8 - Browse repository at this point
Copy the full SHA 430ceb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddef858 - Browse repository at this point
Copy the full SHA ddef858View commit details -
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"
Configuration menu - View commit details
-
Copy full SHA for 0195118 - Browse repository at this point
Copy the full SHA 0195118View commit details -
Configuration menu - View commit details
-
Copy full SHA for f26dded - Browse repository at this point
Copy the full SHA f26ddedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fae57c - Browse repository at this point
Copy the full SHA 5fae57cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 594dbf3 - Browse repository at this point
Copy the full SHA 594dbf3View commit details -
Made createUser function in backend exportable. Fixed the import in /…
…api/auth/register.ts to be imported from backend instead of frontend
Configuration menu - View commit details
-
Copy full SHA for 356244a - Browse repository at this point
Copy the full SHA 356244aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7d3469 - Browse repository at this point
Copy the full SHA b7d3469View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d58c21 - Browse repository at this point
Copy the full SHA 3d58c21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 765d283 - Browse repository at this point
Copy the full SHA 765d283View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ab6d2a - Browse repository at this point
Copy the full SHA 2ab6d2aView commit details -
handleError file's handleUserError now returns a string. Added a new …
…useState to /pages/register.tsx to show if error occured during registering
Configuration menu - View commit details
-
Copy full SHA for e19df78 - Browse repository at this point
Copy the full SHA e19df78View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for bf30cfd - Browse repository at this point
Copy the full SHA bf30cfdView commit details
Commits on Apr 10, 2024
-
Added eye icon behind password which will show the password. Added fu…
…nctionality to show the password
Configuration menu - View commit details
-
Copy full SHA for 7a7000d - Browse repository at this point
Copy the full SHA 7a7000dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6613eb - Browse repository at this point
Copy the full SHA f6613ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 755d369 - Browse repository at this point
Copy the full SHA 755d369View commit details -
Configuration menu - View commit details
-
Copy full SHA for d68195e - Browse repository at this point
Copy the full SHA d68195eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 734fa10 - Browse repository at this point
Copy the full SHA 734fa10View commit details -
Configuration menu - View commit details
-
Copy full SHA for a91e5ff - Browse repository at this point
Copy the full SHA a91e5ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb7b3e4 - Browse repository at this point
Copy the full SHA cb7b3e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91d633c - Browse repository at this point
Copy the full SHA 91d633cView commit details
Commits on Apr 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 50a4100 - Browse repository at this point
Copy the full SHA 50a4100View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b051aa - Browse repository at this point
Copy the full SHA 7b051aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8ef5d4 - Browse repository at this point
Copy the full SHA c8ef5d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cbdff2 - Browse repository at this point
Copy the full SHA 8cbdff2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2500743 - Browse repository at this point
Copy the full SHA 2500743View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cd8c4f - Browse repository at this point
Copy the full SHA 8cd8c4fView commit details
Commits on Apr 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fad4a56 - Browse repository at this point
Copy the full SHA fad4a56View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5445dc - Browse repository at this point
Copy the full SHA d5445dcView commit details
Commits on Apr 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5ddda6a - Browse repository at this point
Copy the full SHA 5ddda6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5467447 - Browse repository at this point
Copy the full SHA 5467447View commit details -
Configuration menu - View commit details
-
Copy full SHA for be218f1 - Browse repository at this point
Copy the full SHA be218f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8561fc7 - Browse repository at this point
Copy the full SHA 8561fc7View commit details -
Created a new file isValidFunctions.ts to shared folder to be able to…
… use both in front- and backend. Fixed the imports as well
Configuration menu - View commit details
-
Copy full SHA for 8075932 - Browse repository at this point
Copy the full SHA 8075932View commit details -
Created useState to determite if the user details should be shown. Ad…
…ded some functionality to it
Configuration menu - View commit details
-
Copy full SHA for 1eb0088 - Browse repository at this point
Copy the full SHA 1eb0088View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c9d21be - Browse repository at this point
Copy the full SHA c9d21beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70901ba - Browse repository at this point
Copy the full SHA 70901baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74a2953 - Browse repository at this point
Copy the full SHA 74a2953View commit details -
Configuration menu - View commit details
-
Copy full SHA for 908f6d4 - Browse repository at this point
Copy the full SHA 908f6d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1530a3a - Browse repository at this point
Copy the full SHA 1530a3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7de5002 - Browse repository at this point
Copy the full SHA 7de5002View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b3e9573 - Browse repository at this point
Copy the full SHA b3e9573View commit details
Commits on Apr 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f9f28c7 - Browse repository at this point
Copy the full SHA f9f28c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23a46da - Browse repository at this point
Copy the full SHA 23a46daView commit details -
Configuration menu - View commit details
-
Copy full SHA for b285acf - Browse repository at this point
Copy the full SHA b285acfView commit details -
Created a function called handleLogout and added it to UserDetailsMod…
…al to be callable
Configuration menu - View commit details
-
Copy full SHA for 4c9563d - Browse repository at this point
Copy the full SHA 4c9563dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae6f4b9 - Browse repository at this point
Copy the full SHA ae6f4b9View commit details -
Added hoverOnlyWhenSupported to be true to make hover elements work a…
…s intended when using mobile
Configuration menu - View commit details
-
Copy full SHA for c0876b1 - Browse repository at this point
Copy the full SHA c0876b1View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 412c37f - Browse repository at this point
Copy the full SHA 412c37fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99b8d7d - Browse repository at this point
Copy the full SHA 99b8d7dView commit details
Commits on Apr 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 513cb3a - Browse repository at this point
Copy the full SHA 513cb3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bce277 - Browse repository at this point
Copy the full SHA 5bce277View commit details -
Configuration menu - View commit details
-
Copy full SHA for 60688a6 - Browse repository at this point
Copy the full SHA 60688a6View commit details
Commits on Apr 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0c44e77 - Browse repository at this point
Copy the full SHA 0c44e77View commit details
Commits on Apr 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for abcb4a6 - Browse repository at this point
Copy the full SHA abcb4a6View commit details
Commits on Apr 29, 2024
-
Moved handleLogout function from Home function to UserDetailModal fun…
…ction. Changed router.push to window.location.href
Configuration menu - View commit details
-
Copy full SHA for c1678cf - Browse repository at this point
Copy the full SHA c1678cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00b11da - Browse repository at this point
Copy the full SHA 00b11daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 300226e - Browse repository at this point
Copy the full SHA 300226eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 994ca51 - Browse repository at this point
Copy the full SHA 994ca51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d5d95e - Browse repository at this point
Copy the full SHA 5d5d95eView commit details
Commits on May 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a1c770b - Browse repository at this point
Copy the full SHA a1c770bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7861a1 - Browse repository at this point
Copy the full SHA a7861a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d87410 - Browse repository at this point
Copy the full SHA 1d87410View commit details
Commits on May 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c74d47a - Browse repository at this point
Copy the full SHA c74d47aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0766e18 - Browse repository at this point
Copy the full SHA 0766e18View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5a4543 - Browse repository at this point
Copy the full SHA d5a4543View commit details -
Added a new variable SvgEye to determine which SVG icon will be shown…
…. Added this both in pages/register.tsx and pages/login.tsx
Configuration menu - View commit details
-
Copy full SHA for 7d85f3f - Browse repository at this point
Copy the full SHA 7d85f3fView commit details
Commits on May 10, 2024
-
Edited getServerSideProps in login.tsx to not get the return an objec…
…t error, works for now
Configuration menu - View commit details
-
Copy full SHA for 58133a1 - Browse repository at this point
Copy the full SHA 58133a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8e4758 - Browse repository at this point
Copy the full SHA d8e4758View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bf0766 - Browse repository at this point
Copy the full SHA 2bf0766View commit details -
Configuration menu - View commit details
-
Copy full SHA for 318e45c - Browse repository at this point
Copy the full SHA 318e45cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c4c157 - Browse repository at this point
Copy the full SHA 1c4c157View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22ac78b - Browse repository at this point
Copy the full SHA 22ac78bView commit details
Commits on May 13, 2024
-
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...)
Configuration menu - View commit details
-
Copy full SHA for 508d84a - Browse repository at this point
Copy the full SHA 508d84aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 9c973ac - Browse repository at this point
Copy the full SHA 9c973acView commit details -
Configuration menu - View commit details
-
Copy full SHA for efc9171 - Browse repository at this point
Copy the full SHA efc9171View commit details
Commits on May 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1f6afac - Browse repository at this point
Copy the full SHA 1f6afacView commit details -
Configuration menu - View commit details
-
Copy full SHA for db064d0 - Browse repository at this point
Copy the full SHA db064d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef0882f - Browse repository at this point
Copy the full SHA ef0882fView commit details -
Changed variable userCreationRequest to be userData. Replaced the con…
…nect method while creating a session
Configuration menu - View commit details
-
Copy full SHA for 724178a - Browse repository at this point
Copy the full SHA 724178aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e9373b - Browse repository at this point
Copy the full SHA 7e9373bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 135dfe5 - Browse repository at this point
Copy the full SHA 135dfe5View commit details
Commits on May 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7e4a63a - Browse repository at this point
Copy the full SHA 7e4a63aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb966a5 - Browse repository at this point
Copy the full SHA bb966a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57a8e30 - Browse repository at this point
Copy the full SHA 57a8e30View commit details