This commit is contained in:
Czw996 2021-07-10 02:03:34 +08:00
parent 7c29947fb7
commit ceb0075c96
3 changed files with 2 additions and 6 deletions

View file

@ -1,8 +1,7 @@
from rest_framework.decorators import api_view, action
from oms.settings import captcha_app_key
from rest_framework import status, exceptions
from rest_framework.response import Response
from .models import Teams, User, Captcha
from .models import Teams, User
from warehouse.models import Inventory
from rest_framework import viewsets
from django.contrib import auth

View file

@ -37,7 +37,7 @@
</template>
<script>
import { register, getCaptcha } from '@/api/user'
import { register } from '@/api/user'
export default {
name: 'Register',

View file

@ -145,6 +145,3 @@ REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
'NON_FIELD_ERRORS_KEY': 'message',
}
# 短信验证码 appkey
captcha_app_key = '9c06acc23b8a64a8'