Mercurial > kallithea
diff pylons_app/controllers/users.py @ 52:25e516447a33
implemented autentication
author | marcink |
---|---|
date | Thu, 08 Apr 2010 12:00:06 +0200 |
parents | 73f413946c14 |
children | 3f65447f6c02 |
line wrap: on
line diff
--- a/pylons_app/controllers/users.py Thu Apr 08 11:29:14 2010 +0200 +++ b/pylons_app/controllers/users.py Thu Apr 08 12:00:06 2010 +0200 @@ -7,7 +7,9 @@ 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 @@ # file has a resource setup: # map.resource('user', 'users') + @authenticate def __before__(self): c.staticurl = g.statics c.admin_user = session.get('admin_user')