Changed protection of endpoints in routes.py to @login_required which is implemented by flask_login. This will reduce the lines of code needed to ensure a user is authenticated before they can access our endpoints.
Fixed a bug where if a user selects "Create Drawing" from the navbar, then when they click "Exit" from the word category modal and selects "Cancel" from the confirmation dialog, they are shown a canvas with no word to draw and no timer. Implemented a custom modal for the confirmation dialog instead to control how the cancel button is handled. Clicking cancel will now show the word category modal if it was originally showing.
Changed the drawing page's CSS to ensure the page's elements are centered on wide screens.
Change Form
[x] The pull request title includes issue number and description.
[x] The work done is summarised above.
[x] The code is commented and well formatted.
[x] Testing has been performed and documented above.
Change Summary
@login_required
which is implemented by flask_login. This will reduce the lines of code needed to ensure a user is authenticated before they can access our endpoints.Change Form
Other Information