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

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

Merged
merged 2 commits into from
Oct 21, 2020
Merged

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

merged 2 commits into from
Oct 21, 2020

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.

None yet

2 participants