Commit cf54c5ac authored by Martin Juhás's avatar Martin Juhás
Browse files

Merge branch '294-check-issue-with-log-message' into 'main'

add request parameter to authenticate method

Closes #294

See merge request inject/backend!291
parents 1e40b3e0 44da1951
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -25,7 +25,9 @@ class LoginMutation(graphene.Mutation):
        username: str,
        password: str,
    ) -> graphene.Mutation:
        user: User = authenticate(username=username, password=password)
        user: User = authenticate(
            username=username, password=password, request=info.context
        )
        login(info.context, user)
        logger.info(log_user_msg(info.context, user) + "successful login")
        # TODO: implement attempts limiter