Skip to content

Additional PR in relation to User authentication ~ #83#89

Merged
stefdworschak merged 2 commits intoCode-Institute-Community:masterfrom
auxfuse:user-auth-nav-links
Oct 21, 2020
Merged

Additional PR in relation to User authentication ~ #83#89
stefdworschak merged 2 commits intoCode-Institute-Community:masterfrom
auxfuse:user-auth-nav-links

Conversation

@auxfuse
Copy link
Contributor

@auxfuse auxfuse commented Oct 21, 2020

Description

This PR adds the exception specific catch and logs that error using Django logging. Also, the Navbar has been altered to check for User Authentication whether logged in or otherwise and depending on same shows a different set of dropdown nav-items under the My Account main nav-item.

Related Issue

#M00. As a User, I would like to register an account. - Auxfuse #83 <--- This is an already merged PR with this PR coming in based off additional requirements outlayed in the comments of the previous merge.

Testing

Exception testing not completed, however documentation was followed to ensure consistent normal code flow adherance.

In terms of the navigation, the Navbar state was tested per User Authentication state:

So if User is not Logged in:

  • Navbar shows My Account dropdown set of Register and Login

And if User is already Logged in:

  • Navbar shows My Account dropdown set of My Profile and Logout

See gif depicting Navbar before login, and navbar after login....also quick frame inclusion of the register page returning the signup template.

navbar

Does this introduce a breaking change

  • No

… conversion to KeyError log, also linked nav Accountlinks and included if else check for user authenticated or otherwise
Copy link
Member

@stefdworschak stefdworschak left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted Accepted PR during Hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments