Fixed major error where login view was not targeting api_login route
This commit is contained in:
parent
59134c51fa
commit
56e8e6acb1
@ -1,6 +1,6 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
# version 2012-12-07.2
|
||||
# version 2012-12-07.3
|
||||
|
||||
CACHE:
|
||||
/partial/404.html
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user