Skip to content

Allow a preceding middleware to opt out of the check#11

Open
daniel5gh wants to merge 2 commits intopcraston:masterfrom
daniel5gh:dev
Open

Allow a preceding middleware to opt out of the check#11
daniel5gh wants to merge 2 commits intopcraston:masterfrom
daniel5gh:dev

Conversation

@daniel5gh
Copy link

@daniel5gh daniel5gh commented Jan 23, 2018

Hi!

I had a use case where I want certain requests to opt out from the concurrent login check. I implemented that by having a middleware add _allow_concurrent_logins to the request object with any value that evaluates to True. The preventconcurrentlogins middleware checks for this flag and exits early when it is set.

Figured I'd make a PR in case you are interested in including this.

Thanks,
Daniel

This works by having a middleware add `_allow_concurrent_logins` to the
request object with any value that evaluates to True.
@pcraston
Copy link
Owner

Hi! Thanks for the contribution. Been really busy recently so haven't had a chance to review and release new version but will do soon!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants