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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user