authenticate

This commit is contained in:
RobbieHan
2018-10-17 15:19:17 +08:00
parent c0460dc163
commit 0b04685f2f
29 changed files with 501 additions and 1205 deletions

10
apps/system/forms.py Normal file
View File

@@ -0,0 +1,10 @@
# @Time : 2018/10/17 23:13
# @Author : RobbieHan
# @File : forms.py
from django import forms
class LoginForm(forms.Form):
username = forms.CharField(required=True, error_messages={"requeired": "请填写用户名"})
password = forms.CharField(required=True, error_messages={"requeired": "请填写密码"})