Skip to content

Fix KeyError when accessing feed, stats, games, and chat without logging in #53

@IsaacCheng9

Description

@IsaacCheng9

Problem Statement

  • When accessing feed, stats (leaderboard, achievements), games (quizzes, flashcards), or chat without logging in, a KeyError: 'username' occurs.
    • This can be fixed by implementing the @login_required annotation with Flask, and hiding these items from the navigation bar when the user isn't logged in.
      • It may be better to hide the navigation bar entirely when the user isn't logged in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghigh priorityThis needs immediate attention

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions