add json_errors placeholder
This commit is contained in:
parent
2304b0c4bd
commit
7c9ef68b10
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue