|
@@ -3,6 +3,7 @@ from pyramid.view import view_config |
|
|
from pyramid.security import remember, forget |
|
|
from pyramid.security import remember, forget |
|
|
from pyramid.httpexceptions import HTTPFound |
|
|
from pyramid.httpexceptions import HTTPFound |
|
|
from .models import User, DBSession |
|
|
from .models import User, DBSession |
|
|
|
|
|
import datetime |
|
|
|
|
|
|
|
|
@view_config(route_name='auth', match_param="action=login", renderer="jm2l:templates/login.mako") |
|
|
@view_config(route_name='auth', match_param="action=login", renderer="jm2l:templates/login.mako") |
|
|
def login(request): |
|
|
def login(request): |
|
|