mirror of
https://github.com/RobbieHan/sandboxMP.git
synced 2026-04-24 10:50:32 +08:00
authenticate
This commit is contained in:
10
apps/system/forms.py
Normal file
10
apps/system/forms.py
Normal 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": "请填写密码"})
|
||||
Reference in New Issue
Block a user