Skip to content

Allow AnonymousIdentity for get_identity() utils functions #187

@zannkukai

Description

@zannkukai

Is your feature request related to a problem? Please describe.

the

def get_identity(user):
method could be return a value even for AnonymousUser

Describe the solution you'd like

Check if user is an anonymous. If yes, return a flask_login.AnonymousIdentity instance.

    if not user.is_anonymous:
        return AnonymousIdentity()

I will be happy to contribute if you valid this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions