Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

'next' arg is not passed if using @roles_required() or @roles_accepted() #4

Closed
lstep opened this issue Apr 27, 2012 · 2 comments
Closed

Comments

@lstep
Copy link

lstep commented Apr 27, 2012

When protecting a resource with either @roles_required() or @roles_accepted(), after a successful login, the next arg is not passed (url is http://localhost:5000/login )
When protecting a resource with @login_required(), "next" is correctly passed in the url: http://localhost:5000/login?next=%2Fmypage

That means tha when the login is successful, the user is always redirected to the '/' resource.

@mattupstate
Copy link
Collaborator

You can try installing the development version until I update pypi:

$ pip install https://github.com/mattupstate/flask-security/tarball/develop

@woshihaoren
Copy link

@lstep
Hi,Can you give me some tips about roles_required or roles_accepted,
When I use it, It can't work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants