Skip to content

Bug in the code (Wrong dictionary) #4

Description

@fturkmen

Just a quick note. Thx a lot for sharing the starter code, it was useful.
There is a bug though in finding the users from user ids... Wrong dictionary is used...

Activity

  1. dojones1 commented on Aug 21, 2018

    @dojones1
    Contributor

    I found this as well today.
    Should be

    def get_user_by_id(self, userid):
        return self.users_id_dict.get(userid)
    

    It's worth fixing as this is by far the best starting point to making use of the flask-login plugin. The provided documentation is far too verbose, and seeing a coherent example like this goes a long way to making it possible.

    Thanks for the effort

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions