1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +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

@@ -13,12 +13,12 @@ class TwoFactorAuthViewTest(BaseTestCase):
self.login_as(self.admin)
def test_can_disable_two_factor_auth(self):
from seahub_extra.two_factor.models import (StaticDevice, TOTPDevice,
from seahub.two_factor.models import (StaticDevice, TOTPDevice,
PhoneDevice)
totp = TOTPDevice(user=self.admin, name="", confirmed=1)
totp.save()
from seahub_extra.two_factor import devices_for_user
from seahub.two_factor import devices_for_user
devices = devices_for_user(self.admin)
i = 0
for device in devices_for_user(self.admin):