coleifer / flask-peewee

flask integration for peewee, including admin, authentication, rest api and more
http://flask-peewee.readthedocs.org/
MIT License
776 stars 181 forks source link

Change @auth.login_required decorator URL #168

Closed 0x4a47 closed 6 years ago

0x4a47 commented 6 years ago

Hi @coleifer,

Just wondering if there is a way to redefine the redirect URL for the @auth.login_required decorator?

I can see that it's statically defined to /accounts/login however i'm looking to implement my own template for the auth and can't seem to find a way to make it work.

0x4a47 commented 6 years ago

Actually, silly me! I overlooked the prefix option in the Auth object initialisation.

Will close this.