Focused on linking the user frontend and backend with stuff like sign in / sign up / sign out, as well as more specific aspects that interacted with the user such as profile.
On the backend I made the fav_pun and review components for the users model.
On the frontend, with the help of Jonathan the login verifies the information then if authorized makes two cookies (one with the auth_token and the other with the user id). For sign up, it will create the account on the backend then prompt you to sign in. If you are authorized, the home page allows you to click a button to favorite a pun. The nav bar also now says "profile" and will take you to your user profile. If you are looking at a user profile and it is not yours, it won't let you edit or sign out, if you are looking at your own profile it will.
The account I've been using to test sign in / sign out is :
username: tallmanrand
password: ilovefergus
But you can also start by signing up with your own account and testing everything that way.
Main questions / problems:
Should we have it where if you sign up you're immediately signed in?
If you sign out it will send you to the front page and remove the cookies, but it won't change the nav bar to say "sign in" instead of "profile" but it will remove the pun button, not sure what to change to fix this
Focused on linking the user frontend and backend with stuff like sign in / sign up / sign out, as well as more specific aspects that interacted with the user such as profile.
On the backend I made the fav_pun and review components for the users model.
On the frontend, with the help of Jonathan the login verifies the information then if authorized makes two cookies (one with the auth_token and the other with the user id). For sign up, it will create the account on the backend then prompt you to sign in. If you are authorized, the home page allows you to click a button to favorite a pun. The nav bar also now says "profile" and will take you to your user profile. If you are looking at a user profile and it is not yours, it won't let you edit or sign out, if you are looking at your own profile it will.
The account I've been using to test sign in / sign out is : username: tallmanrand password: ilovefergus
But you can also start by signing up with your own account and testing everything that way.
Main questions / problems: