echevemaster / fedora-college

Fedora College's website
Other
13 stars 10 forks source link

Decorator for auth #20

Closed yograterol closed 10 years ago

yograterol commented 10 years ago

Add a auth decorator for functions.

hammadhaleem commented 10 years ago

I am using an authentication function which serves same feature.

https://github.com/hammadhaleem/fedora-college/blob/develop/fedora_college/modules/content/views.py#L20

yograterol commented 10 years ago

Yes I know, but a decorator it's more functional.

hammadhaleem commented 10 years ago

Added decorators :) using default for now.

from flask_fas_openid import fas_login_required @fas_login_required.

Thanks for point this out.