Commit Graph

11 Commits

Author SHA1 Message Date
Aaron William Po
cf6a8309f1 Rework pagination and cookies 2023-03-19 18:04:13 -04:00
Aaron William Po
584e3b349f Implement confirm user functionality
This commit adds the necessary functionality to confirm a user's account.

It includes the addition of a new column in the user table to track whether an account is confirmed or not, and the implementation of JWT for confirmation tokens.

This commit integrates the SparkPost API as well as React Email to send dynamic emails for whatever purpose.

Upon user registration, a confirmation email will be sent to the user.
2023-03-13 22:35:57 -04:00
Aaron William Po
472ead9abd Refactoring beer by id page, add delete comment
Refactored the comments ui into various new components, added the delete beer comment by id feature.
2023-03-03 21:28:44 -05:00
Aaron William Po
7126c74d5d Add edit beer post, 500 page, and redirectIfLoggedIn getServerSideProps.
Implement edit beer post functionality.

Register, edit and create beer post forms are now using the same layout found in components/ui/forms/BeerPostFormPageLayout. All forms are now extracted into their own components and are now found in components.

Added redirectIfLoggedIn getServerSidesProp fn for login and register pages.
2023-02-27 18:19:58 -05:00
Aaron William Po
cee7942f1c add isSubmitting state to BeerForm 2023-02-20 16:19:33 -05:00
Aaron William Po
80261a713b Add comments pagination, login and register pages 2023-02-13 10:56:09 -05:00
Aaron William Po
dbd342fd3e Refactor codebase, format 2023-02-09 04:03:52 -05:00
Aaron William Po
f6880deeb6 add user context and likes 2023-02-08 07:43:59 -05:00
Aaron William Po
9a9d8bcb94 Implement login, add useUser hook 2023-02-06 17:19:28 -05:00
Aaron William Po
fe277d5964 Refactor api requests and components out of pages 2023-01-28 21:05:20 -05:00
Aaron William Po
972846f5a8 scaffold create/edit beer form, scaffold beer page 2023-01-23 20:13:25 -05:00