This commit is contained in:
RobbieHan
2019-01-04 19:54:50 +08:00
parent 9d0bd95b69
commit 371b1ebbe3
5 changed files with 60 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ class LoginView(View):
redirect_to = request.GET.get('next', '/')
login_form = LoginForm(request.POST)
ret = dict(login_form=login_form)
print(request.META.get('REMOTE_ADDR'))
if login_form.is_valid():
user_name = request.POST['username']
pass_word = request.POST['password']