Fixed major error where login view was not targeting api_login route

This commit is contained in:
Tanshu 2012-12-07 15:08:57 +05:30
parent 59134c51fa
commit 56e8e6acb1
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
CACHE MANIFEST
# version 2012-12-07.2
# version 2012-12-07.3
CACHE:
/partial/404.html

View File

@ -16,7 +16,7 @@ def logout(request):
return HTTPFound(location=request.route_url('home'), headers=headers)
@view_config(request_method='POST', route_name='login', renderer='json')
@view_config(request_method='POST', route_name='api_login', renderer='json')
def login(request):
username = request.json_body.get('username', None)
password = request.json_body.get('password', None)