进入 jms_core 容器
docker exec -it jms_core /bin/bash
进入apps目录
cd /opt/jumpserver/apps
python manage.py shell
from users.models import User
u = User.objects.get(username='admin')
u.mfa_level='0'
u.otp_secret_key=''
u.save()
exit退出
进入 jms_core 容器
docker exec -it jms_core /bin/bash
进入apps目录
cd /opt/jumpserver/apps
python manage.py shell
from users.models import User
u = User.objects.get(username='admin')
u.mfa_level='0'
u.otp_secret_key=''
u.save()
exit退出