diff --git a/pandora/oxuser/views.py b/pandora/oxuser/views.py index 60984a9..6ea3968 100644 --- a/pandora/oxuser/views.py +++ b/pandora/oxuser/views.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- + # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 import uuid import hashlib @@ -17,6 +17,9 @@ from oxdjango.decorators import login_required_json import models +def json_errors(form): + return {'status': {'code': 402, 'text': 'form error'}} + class LoginForm(forms.Form): username = forms.TextInput() password = forms.TextInput()