[Feature] 完成登陆日志

This commit is contained in:
ibuler
2017-12-05 12:24:31 +08:00
parent a5f9735906
commit ec8106e43d
9 changed files with 168 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ import requests
import ipaddress
from django.conf import settings
from django.contrib.auth.mixins import UserPassesTestMixin
from django.contrib.auth import authenticate
from django.contrib.auth import authenticate, login as auth_login
from django.utils.translation import ugettext as _
from django.core.cache import cache