forked from 0x2620/pandora
add json_errors placeholder
This commit is contained in:
parent
2304b0c4bd
commit
7c9ef68b10
1 changed files with 4 additions and 1 deletions
|
@ -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