diff --git a/pylons_app/controllers/users.py b/pylons_app/controllers/users.py --- a/pylons_app/controllers/users.py +++ b/pylons_app/controllers/users.py @@ -7,7 +7,9 @@ from pylons_app.lib.base import BaseCont from formencode import htmlfill from pylons_app.model import meta from pylons_app.model.db import Users, UserLogs +from pylons_app.lib.auth import authenticate import crypt + log = logging.getLogger(__name__) class UsersController(BaseController): @@ -16,6 +18,7 @@ class UsersController(BaseController): # file has a resource setup: # map.resource('user', 'users') + @authenticate def __before__(self): c.staticurl = g.statics c.admin_user = session.get('admin_user')