Implemented login on frontend #1019
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!1019
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "991-login-and-signup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is my current progress on issue #991. The issue also includes signing up, but this is not included in this pr due to time constraints.
A majority of the hook useLogin could be broken out to a utility hook for making post requests. This is something I started on, but abandoned due to time constraints (I prioritized sleep).
The error handeling is kind of crude (just displaying the text received in the response). This is due to the two common errors during login return the same error type...
As this is in no way perfect, but you can actually log in and receive the JWT access token, so I leave it up to the reviewer/issue coordinator to decide if this can be merged or not. I just thought it would be nice if I could continue work on the up-to-date branch.
NOTE: Since sign up has not been implemented to the frontend yet. A tool like bruno or RESTer can be used to access the SignUp endpoint and create the account.
Review on #1019
Whats done
Tested on macOS using Chrome
Inspected following files
What needs to be done
Conclusion
The implemented login functionality works correctly and the current changes look ready to be merged for continued work on the updated branch.