1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 03:47:09 +00:00

migrate two-factor

This commit is contained in:
zming
2017-08-21 14:02:57 +08:00
parent 3be404e818
commit d0975c7836
64 changed files with 7176 additions and 9 deletions

View File

@@ -699,7 +699,7 @@ def user_info(request, email):
_default_device = False
_has_two_factor_auth = has_two_factor_auth()
if _has_two_factor_auth:
from seahub_extra.two_factor.utils import default_device
from seahub.two_factor.utils import default_device
_user = User.objects.get(email=email)
_default_device = default_device(_user)